Changeset 970f6e1 in mainline for uspace/drv/hid/usbhid/mouse/mousedev.c
- Timestamp:
- 2018-01-09T18:25:56Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4793023
- Parents:
- c386d6d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/mouse/mousedev.c
rc386d6d r970f6e1 165 165 } 166 166 167 static boolusb_mouse_process_report(usb_hid_dev_t *hid_dev,167 static void usb_mouse_process_report(usb_hid_dev_t *hid_dev, 168 168 usb_mouse_t *mouse_dev) 169 169 { … … 172 172 if (mouse_dev->mouse_sess == NULL) { 173 173 usb_log_warning(NAME " No console session.\n"); 174 return true;174 return; 175 175 } 176 176 … … 191 191 if (absolute_x != absolute_y) { 192 192 usb_log_error(NAME " cannot handle mix of absolute and relative mouse move."); 193 return true;193 return; 194 194 } 195 195 … … 226 226 if (path == NULL) { 227 227 usb_log_warning("Failed to create USB HID report path.\n"); 228 return true;228 return; 229 229 } 230 230 int ret = … … 233 233 usb_hid_report_path_free(path); 234 234 usb_log_warning("Failed to add buttons to report path.\n"); 235 return true;235 return; 236 236 } 237 237 usb_hid_report_path_set_report_id(path, hid_dev->report_id); … … 266 266 267 267 usb_hid_report_path_free(path); 268 269 return true;270 268 } 271 269 … … 414 412 415 413 usb_mouse_t *mouse_dev = data; 416 417 return usb_mouse_process_report(hid_dev, mouse_dev); 414 usb_mouse_process_report(hid_dev, mouse_dev); 415 416 /* Continue polling until the device is about to be removed. */ 417 return !hid_dev->will_deinit; 418 418 } 419 419
Note:
See TracChangeset
for help on using the changeset viewer.