Changeset 3fafe5e0 in mainline for uspace/lib/drv/generic/remote_usbhid.c
- Timestamp:
- 2018-04-27T14:15:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7148abf
- Parents:
- a2eb85d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-26 17:14:26)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-27 14:15:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhid.c
ra2eb85d r3fafe5e0 287 287 static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 288 288 static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 289 // static void remote_usbhid_(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *);290 289 291 290 /** Remote USB HID interface operations. */ … … 305 304 }; 306 305 307 //usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;308 309 306 310 307 void remote_usbhid_get_event_length(ddf_fun_t *fun, void *iface, … … 322 319 323 320 size_t len = hid_iface->get_event_length(fun); 324 // if (len == 0) {325 // len = EEMPTY;326 // }327 321 async_answer_1(chandle, EOK, len); 328 329 // if (len < 0) {330 // async_answer_0(chandle, len);331 // } else {332 // async_answer_1(chandle, EOK, len);333 // }334 322 } 335 323 … … 352 340 return; 353 341 } 354 // /* Check that length is even number. Truncate otherwise. */ 355 // if ((len % 2) == 1) { 356 // len--; 357 // } 342 358 343 if (len == 0) { 359 344 async_answer_0(data_chandle, EINVAL);
Note:
See TracChangeset
for help on using the changeset viewer.