Changeset 6ff23ff in mainline for uspace/lib/usbhid


Ignore:
Timestamp:
2018-05-17T13:46:56Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f8772d4
Parents:
7c3fb9b
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 18:44:36)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 13:46:56)
Message:

More comment fixing (ccheck).

Location:
uspace/lib/usbhid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/include/usb/hid/usages/kbdgen.h

    r7c3fb9b r6ff23ff  
    3232/** @file
    3333 * @brief USB HID key codes.
    34  * @details
     34 *
    3535 * This is not a typical header as by default it is equal to empty file.
    3636 * However, by cleverly defining the USB_HIDUT_KBD_KEY you can use it
     
    3939 * For example, this creates enum for known keys:
    4040 * @code
    41 #define USB_HIDUT_KBD_KEY(name, usage_id, l, lc, l1, l2) \
    42         USB_KBD_KEY_##name = usage_id,
    43 typedef enum {
    44         #include <usb/hidutkbd.h>
    45 } usb_key_code_t;
    46  @endcode
     41 * #define USB_HIDUT_KBD_KEY(name, usage_id, l, lc, l1, l2) \
     42 *     USB_KBD_KEY_##name = usage_id,
     43 *
     44 * typedef enum {
     45 *         #include <usb/hidutkbd.h>
     46 * } usb_key_code_t;
     47 * @endcode
    4748 *
    4849 * Maybe, it might be better that you would place such enums into separate
  • uspace/lib/usbhid/src/hidpath.c

    r7c3fb9b r6ff23ff  
    213213
    214214        switch (flags) {
    215         /* Path is somewhere in report_path */
    216215        case USB_HID_PATH_COMPARE_ANYWHERE:
     216                /*
     217                 * Path is somewhere in report_path
     218                 */
    217219                if (path->depth != 1) {
    218220                        return 1;
     
    239241
    240242                return 1;
    241                 break;
    242 
    243         /* The paths must be identical */
     243
    244244        case USB_HID_PATH_COMPARE_STRICT:
     245                /*
     246                 * The paths must be identical
     247                 */
    245248                if (report_path->depth != path->depth) {
    246249                        return 1;
     
    248251                /* Fallthrough */
    249252
    250         /* Path is prefix of the report_path */
    251253        case USB_HID_PATH_COMPARE_BEGIN:
     254                /*
     255                 * Path is prefix of the report_path
     256                 */
    252257                report_link = report_path->items.head.next;
    253258                path_link = path->items.head.next;
     
    283288                break;
    284289
    285         /* Path is suffix of report_path */
    286290        case USB_HID_PATH_COMPARE_END:
     291                /*
     292                 * Path is suffix of report_path
     293                 */
    287294                report_link = report_path->items.head.prev;
    288295                path_link = path->items.head.prev;
Note: See TracChangeset for help on using the changeset viewer.