Changeset 4793023 in mainline
- Timestamp:
- 2018-01-09T18:31:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 708d8fcd
- Parents:
- 970f6e1
- Location:
- uspace/drv/hid/usbhid
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/kbd/kbddev.c
r970f6e1 r4793023 328 328 * An event is created only when key is pressed or released. Besides handling 329 329 * the events (usb_kbd_push_ev()), the auto-repeat fibril is notified about 330 * key presses and releases (see usb_kbd_repeat_start() and 330 * key presses and releases (see usb_kbd_repeat_start() and 331 331 * usb_kbd_repeat_stop()). 332 332 * 333 333 * @param kbd_dev Keyboard device structure. 334 * @param key_codes Parsed keyboard report - codes of currently pressed keys 334 * @param key_codes Parsed keyboard report - codes of currently pressed keys 335 335 * according to HID Usage Tables. 336 336 * @param count Number of key codes in report (size of the report). … … 709 709 usb_kbd_process_data(hid_dev, kbd_dev); 710 710 711 return true; 711 /* Continue polling until the device is about to be removed. */ 712 return !hid_dev->will_deinit; 712 713 } 713 714 -
uspace/drv/hid/usbhid/multimedia/multimedia.c
r970f6e1 r4793023 246 246 usb_hid_report_path_t *path = usb_hid_report_path(); 247 247 if (path == NULL) 248 return true; /* This might be a temporary failure. */248 return !hid_dev->will_deinit; /* This might be a temporary failure. */ 249 249 250 250 int ret = … … 252 252 if (ret != EOK) { 253 253 usb_hid_report_path_free(path); 254 return true; /* This might be a temporary failure. */254 return !hid_dev->will_deinit; /* This might be a temporary failure. */ 255 255 } 256 256 … … 284 284 usb_hid_report_path_free(path); 285 285 286 return true;286 return !hid_dev->will_deinit; 287 287 } 288 288 /**
Note:
See TracChangeset
for help on using the changeset viewer.