Changeset 8565a42 in mainline for uspace/drv/hid/usbhid


Ignore:
Timestamp:
2018-03-02T20:34:50Z (8 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

Location:
uspace/drv/hid/usbhid
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/usbhid/blink1/blink1.c

    r3061bc1 r8565a42  
    6767                return EINVAL;
    6868        }
    69        
     69
    7070        blink1_report_t report;
    71        
     71
    7272        report.id = BLINK1_REPORT_ID;
    7373        report.command = BLINK1_COMMAND_SET;
     
    7878        report.arg4 = 0;
    7979        report.arg5 = 0;
    80        
     80
    8181        return usbhid_req_set_report(
    8282            usb_device_get_default_pipe(blink1_dev->hid_dev->usb_dev),
     
    100100                return EINVAL;
    101101        }
    102        
     102
    103103        /* Create the exposed function. */
    104104        ddf_fun_t *fun = usb_device_ddf_fun_create(hid_dev->usb_dev,
     
    109109                return ENOMEM;
    110110        }
    111        
     111
    112112        usb_blink1_t *blink1_dev = (usb_blink1_t *)
    113113            ddf_fun_data_alloc(fun, sizeof(usb_blink1_t));
     
    118118                return ENOMEM;
    119119        }
    120        
     120
    121121        ddf_fun_set_ops(fun, &blink1_ops);
    122        
     122
    123123        errno_t rc = ddf_fun_bind(fun);
    124124        if (rc != EOK) {
     
    128128                return rc;
    129129        }
    130        
     130
    131131        rc = ddf_fun_add_to_category(fun, HID_BLINK1_CATEGORY);
    132132        if (rc != EOK) {
    133133                usb_log_error("Could not add DDF function to category %s: %s.",
    134134                    HID_BLINK1_CATEGORY, str_error(rc));
    135                
     135
    136136                rc = ddf_fun_unbind(fun);
    137137                if (rc != EOK) {
     
    140140                        return rc;
    141141                }
    142                
     142
    143143                ddf_fun_destroy(fun);
    144144                return rc;
    145145        }
    146        
     146
    147147        blink1_dev->fun = fun;
    148148        blink1_dev->hid_dev = hid_dev;
    149149        *data = blink1_dev;
    150        
     150
    151151        return EOK;
    152152}
     
    156156        if (data == NULL)
    157157                return;
    158        
     158
    159159        usb_blink1_t *blink1_dev = (usb_blink1_t *) data;
    160        
     160
    161161        errno_t rc = ddf_fun_unbind(blink1_dev->fun);
    162162        if (rc != EOK) {
     
    165165                return;
    166166        }
    167        
     167
    168168        ddf_fun_destroy(blink1_dev->fun);
    169169}
  • uspace/drv/hid/usbhid/blink1/blink1.h

    r3061bc1 r8565a42  
    4444        /** DDF blink(1) function */
    4545        ddf_fun_t *fun;
    46        
     46
    4747        /** USB HID device */
    4848        usb_hid_dev_t *hid_dev;
  • uspace/drv/hid/usbhid/kbd/kbddev.h

    r3061bc1 r8565a42  
    6363        /** Link to HID device structure */
    6464        usb_hid_dev_t *hid_dev;
    65        
     65
    6666        /** Previously pressed keys (not translated to key codes). */
    6767        int32_t *keys_old;
     
    7272        /** Currently pressed modifiers (bitmap). */
    7373        uint8_t modifiers;
    74        
     74
    7575        /** Currently active modifiers including locks. Sent to the console. */
    7676        unsigned int mods;
    77        
     77
    7878        /** Currently active lock keys. */
    7979        unsigned int lock_keys;
    80        
     80
    8181        /** IPC session to client (for sending key events). */
    8282        async_sess_t *client_sess;
    83        
     83
    8484        /** Information for auto-repeat of keys. */
    8585        usb_kbd_repeat_t repeat;
    86        
     86
    8787        /** Mutex for accessing the information about auto-repeat. */
    8888        fibril_mutex_t repeat_mtx;
    89        
     89
    9090        uint8_t *output_buffer;
    91        
     91
    9292        size_t output_size;
    93        
     93
    9494        size_t led_output_size;
    95        
     95
    9696        usb_hid_report_path_t *led_path;
    97        
     97
    9898        int32_t *led_data;
    99        
     99
    100100        /** State of the structure (for checking before use).
    101101         *
     
    105105         */
    106106        int initialized;
    107        
     107
    108108        /** DDF function */
    109109        ddf_fun_t *fun;
  • uspace/drv/hid/usbhid/mouse/mousedev.h

    r3061bc1 r8565a42  
    4545        /** IPC session to consumer. */
    4646        async_sess_t *mouse_sess;
    47        
     47
    4848        /** Mouse buttons statuses. */
    4949        int32_t *buttons;
    5050        size_t buttons_count;
    51        
     51
    5252        /** DDF mouse function */
    5353        ddf_fun_t *mouse_fun;
  • uspace/drv/hid/usbhid/multimedia/keymap.c

    r3061bc1 r8565a42  
    8686        /*! @todo What if the usage is not in the table? */
    8787        key = map[usage];
    88        
     88
    8989        return key;
    9090}
  • uspace/drv/hid/usbhid/subdrivers.h

    r3061bc1 r8565a42  
    6161         */
    6262        const usb_hid_subdriver_usage_t *usage_path;
    63        
     63
    6464        /** Report ID for which the path should apply. */
    6565        int report_id;
    66        
     66
    6767        /** Compare type for the usage path. */
    6868        int compare;
    69        
     69
    7070        /** Vendor ID (set to -1 if not specified). */
    7171        int vendor_id;
    72        
     72
    7373        /** Product ID (set to -1 if not specified). */
    7474        int product_id;
    75        
     75
    7676        /** Subdriver for controlling this device. */
    7777        const usb_hid_subdriver_t subdriver;
Note: See TracChangeset for help on using the changeset viewer.