Changeset 1433ecda in mainline for uspace/lib/usbhid/src


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/lib/usbhid/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hidparser.c

    r47b2d7e3 r1433ecda  
    381381                                        tmp_value = tmp_value << (offset % 8);
    382382
    383                                         mask = ~(((1 << (8 - (offset % 8))) - 1)
    384                                             << (offset % 8));
     383                                        mask = ~(((1 << (8 - (offset % 8))) - 1) << (offset % 8));
    385384
    386385                                        buffer[i] = (buffer[i] & mask) |
     
    471470                return NULL;
    472471        }
    473         memcpy(new_report_item,item, sizeof(usb_hid_report_item_t));
     472        memcpy(new_report_item, item, sizeof(usb_hid_report_item_t));
    474473        link_initialize(&(new_report_item->link));
    475474
  • uspace/lib/usbhid/src/hidpath.c

    r47b2d7e3 r1433ecda  
    150150        if (!list_empty(&usage_path->items)) {
    151151                item = list_get_instance(list_last(&usage_path->items),
    152                      usb_hid_report_usage_path_t, rpath_items_link);
     152                    usb_hid_report_usage_path_t, rpath_items_link);
    153153
    154154                switch (tag) {
     
    293293
    294294                while ((report_link != &report_path->items.head) &&
    295                       (path_link != &path->items.head)) {
     295                    (path_link != &path->items.head)) {
    296296                        report_item = list_get_instance(report_link,
    297297                            usb_hid_report_usage_path_t, rpath_items_link);
     
    334334        if (path == NULL) {
    335335                return NULL;
    336         }
    337         else {
     336        } else {
    338337                path->depth = 0;
    339338                path->report_id = 0;
Note: See TracChangeset for help on using the changeset viewer.