Changeset 1433ecda in mainline for uspace/drv/hid


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/hid
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/adb-kbd/adb-kbd.c

    r47b2d7e3 r1433ecda  
    186186        if (b1 != 0xff)
    187187                adb_kbd_data(kbd, b1);
    188         (void)b0; (void)b1;
     188        (void)b0;
     189        (void)b1;
    189190}
    190191
  • uspace/drv/hid/adb-kbd/main.c

    r47b2d7e3 r1433ecda  
    6565        adb_kbd_t *adb_kbd;
    6666
    67         ddf_msg(LVL_DEBUG, "adb_kbd_dev_add(%p)", dev);
     67        ddf_msg(LVL_DEBUG, "adb_kbd_dev_add(%p)", dev);
    6868        adb_kbd = ddf_dev_data_alloc(dev, sizeof(adb_kbd_t));
    6969        if (adb_kbd == NULL) {
     
    7979static errno_t adb_kbd_dev_remove(ddf_dev_t *dev)
    8080{
    81         adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev);
     81        adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev);
    8282
    83         ddf_msg(LVL_DEBUG, "adb_kbd_dev_remove(%p)", dev);
     83        ddf_msg(LVL_DEBUG, "adb_kbd_dev_remove(%p)", dev);
    8484
    85         return adb_kbd_remove(adb_kbd);
     85        return adb_kbd_remove(adb_kbd);
    8686}
    8787
    8888static errno_t adb_kbd_dev_gone(ddf_dev_t *dev)
    8989{
    90         adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev);
     90        adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev);
    9191
    92         ddf_msg(LVL_DEBUG, "adb_kbd_dev_gone(%p)", dev);
     92        ddf_msg(LVL_DEBUG, "adb_kbd_dev_gone(%p)", dev);
    9393
    94         return adb_kbd_gone(adb_kbd);
     94        return adb_kbd_gone(adb_kbd);
    9595}
    9696
    9797static errno_t adb_kbd_fun_online(ddf_fun_t *fun)
    9898{
    99         ddf_msg(LVL_DEBUG, "adb_kbd_fun_online()");
    100         return ddf_fun_online(fun);
     99        ddf_msg(LVL_DEBUG, "adb_kbd_fun_online()");
     100        return ddf_fun_online(fun);
    101101}
    102102
    103103static errno_t adb_kbd_fun_offline(ddf_fun_t *fun)
    104104{
    105         ddf_msg(LVL_DEBUG, "adb_kbd_fun_offline()");
    106         return ddf_fun_offline(fun);
     105        ddf_msg(LVL_DEBUG, "adb_kbd_fun_offline()");
     106        return ddf_fun_offline(fun);
    107107}
    108108
  • uspace/drv/hid/adb-mouse/main.c

    r47b2d7e3 r1433ecda  
    6565        adb_mouse_t *adb_mouse;
    6666
    67         ddf_msg(LVL_DEBUG, "adb_mouse_dev_add(%p)", dev);
     67        ddf_msg(LVL_DEBUG, "adb_mouse_dev_add(%p)", dev);
    6868        adb_mouse = ddf_dev_data_alloc(dev, sizeof(adb_mouse_t));
    6969        if (adb_mouse == NULL) {
     
    7979static errno_t adb_mouse_dev_remove(ddf_dev_t *dev)
    8080{
    81         adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev);
     81        adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev);
    8282
    83         ddf_msg(LVL_DEBUG, "adb_mouse_dev_remove(%p)", dev);
     83        ddf_msg(LVL_DEBUG, "adb_mouse_dev_remove(%p)", dev);
    8484
    85         return adb_mouse_remove(adb_mouse);
     85        return adb_mouse_remove(adb_mouse);
    8686}
    8787
    8888static errno_t adb_mouse_dev_gone(ddf_dev_t *dev)
    8989{
    90         adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev);
     90        adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev);
    9191
    92         ddf_msg(LVL_DEBUG, "adb_mouse_dev_gone(%p)", dev);
     92        ddf_msg(LVL_DEBUG, "adb_mouse_dev_gone(%p)", dev);
    9393
    94         return adb_mouse_gone(adb_mouse);
     94        return adb_mouse_gone(adb_mouse);
    9595}
    9696
    9797static errno_t adb_mouse_fun_online(ddf_fun_t *fun)
    9898{
    99         ddf_msg(LVL_DEBUG, "adb_mouse_fun_online()");
    100         return ddf_fun_online(fun);
     99        ddf_msg(LVL_DEBUG, "adb_mouse_fun_online()");
     100        return ddf_fun_online(fun);
    101101}
    102102
    103103static errno_t adb_mouse_fun_offline(ddf_fun_t *fun)
    104104{
    105         ddf_msg(LVL_DEBUG, "adb_mouse_fun_offline()");
    106         return ddf_fun_offline(fun);
     105        ddf_msg(LVL_DEBUG, "adb_mouse_fun_offline()");
     106        return ddf_fun_offline(fun);
    107107}
    108108
  • uspace/drv/hid/atkbd/main.c

    r47b2d7e3 r1433ecda  
    100100                ddf_msg(LVL_ERROR, "Failed to initialize AT_KBD driver: %s.",
    101101                    str_error(rc));
    102                 return rc;
     102                return rc;
    103103        }
    104104
  • uspace/drv/hid/usbhid/main.c

    r47b2d7e3 r1433ecda  
    162162/** The driver itself. */
    163163static const usb_driver_t usb_hid_driver = {
    164         .name = NAME,
    165         .ops = &usb_hid_driver_ops,
    166         .endpoints = usb_hid_endpoints
     164        .name = NAME,
     165        .ops = &usb_hid_driver_ops,
     166        .endpoints = usb_hid_endpoints
    167167};
    168168
  • uspace/drv/hid/usbhid/subdrivers.c

    r47b2d7e3 r1433ecda  
    4848                USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD
    4949        },
    50         {0, 0}
     50        { 0, 0 }
    5151};
    5252
     
    5656                USB_HIDUT_USAGE_GENERIC_DESKTOP_MOUSE
    5757        },
    58         {0, 0}
     58        { 0, 0 }
    5959};
    6060
     
    6464                USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL
    6565        },
    66         {0, 0}
     66        { 0, 0 }
    6767};
    6868
  • uspace/drv/hid/xtkbd/main.c

    r47b2d7e3 r1433ecda  
    100100                ddf_msg(LVL_ERROR, "Failed to initialize XT_KBD driver: %s.",
    101101                    str_error(rc));
    102                 return rc;
     102                return rc;
    103103        }
    104104
Note: See TracChangeset for help on using the changeset viewer.