Changeset 7c3fb9b in mainline for uspace/drv/hid
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- Location:
- uspace/drv/hid/usbhid
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/kbd/kbddev.c
rfac0ac7 r7c3fb9b 174 174 async_answer_0(icall_handle, EOK); 175 175 break; 176 /* This might be ugly but async_callback_receive_start makes no 177 * difference for incorrect call and malloc failure. */ 176 /* 177 * This might be ugly but async_callback_receive_start makes no 178 * difference for incorrect call and malloc failure. 179 */ 178 180 case IPC_M_CONNECT_TO_ME: 179 181 sess = async_callback_receive_start(EXCHANGE_SERIALIZE, icall); … … 579 581 } 580 582 581 /* Set LEDs according to initial setup. 582 * Set Idle rate */ 583 /* 584 * Set LEDs according to initial setup. 585 * Set Idle rate 586 */ 583 587 usb_kbd_set_led(hid_dev, kbd_dev); 584 588 … … 649 653 } 650 654 651 /* Store the initialized HID device and HID ops 652 * to the DDF function. */ 655 /* 656 * Store the initialized HID device and HID ops 657 * to the DDF function. 658 */ 653 659 ddf_fun_set_ops(fun, &kbdops); 654 660 -
uspace/drv/hid/usbhid/main.c
rfac0ac7 r7c3fb9b 87 87 usb_log_debug("USB/HID device structure initialized."); 88 88 89 /* Start automated polling function. 89 /* 90 * Start automated polling function. 90 91 * This will create a separate fibril that will query the device 91 * for the data continuously. */ 92 * for the data continuously. 93 */ 92 94 rc = usb_polling_start(&hid_dev->polling); 93 95 -
uspace/drv/hid/usbhid/multimedia/multimedia.c
rfac0ac7 r7c3fb9b 230 230 } else { 231 231 usb_log_debug2("%s unbound.", ddf_fun_get_name(fun)); 232 /* This frees multim_dev too as it was stored in 233 * fun->data */ 232 /* 233 * This frees multim_dev too as it was stored in 234 * fun->data 235 */ 234 236 ddf_fun_destroy(fun); 235 237 } -
uspace/drv/hid/usbhid/usbhid.c
rfac0ac7 r7c3fb9b 511 511 512 512 if (ok) { 513 /* Save max input report size and 514 * allocate space for the report */ 513 /* 514 * Save max input report size and 515 * allocate space for the report 516 */ 515 517 rc = usb_hid_init_report(hid_dev); 516 518 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.