Changes in uspace/drv/hid/usbhid/generic/hiddev.c [b7fd2a0:53b9f2c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/generic/hiddev.c
rb7fd2a0 r53b9f2c 60 60 61 61 static size_t usb_generic_hid_get_event_length(ddf_fun_t *fun); 62 static errno_t usb_generic_hid_get_event(ddf_fun_t *fun, uint8_t *buffer,62 static int usb_generic_hid_get_event(ddf_fun_t *fun, uint8_t *buffer, 63 63 size_t size, size_t *act_size, int *event_nr, unsigned int flags); 64 static errno_t usb_generic_hid_client_connected(ddf_fun_t *fun);64 static int usb_generic_hid_client_connected(ddf_fun_t *fun); 65 65 static size_t usb_generic_get_report_descriptor_length(ddf_fun_t *fun); 66 static errno_t usb_generic_get_report_descriptor(ddf_fun_t *fun, uint8_t *desc,66 static int usb_generic_get_report_descriptor(ddf_fun_t *fun, uint8_t *desc, 67 67 size_t size, size_t *actual_size); 68 68 … … 102 102 } 103 103 104 static errno_t usb_generic_hid_get_event(ddf_fun_t *fun, uint8_t *buffer,104 static int usb_generic_hid_get_event(ddf_fun_t *fun, uint8_t *buffer, 105 105 size_t size, size_t *act_size, int *event_nr, unsigned int flags) 106 106 { … … 143 143 } 144 144 145 static errno_t usb_generic_get_report_descriptor(ddf_fun_t *fun, uint8_t *desc,145 static int usb_generic_get_report_descriptor(ddf_fun_t *fun, uint8_t *desc, 146 146 size_t size, size_t *actual_size) 147 147 { … … 160 160 } 161 161 162 static errno_t usb_generic_hid_client_connected(ddf_fun_t *fun)162 static int usb_generic_hid_client_connected(ddf_fun_t *fun) 163 163 { 164 164 usb_log_debug("Generic HID: Client connected.\n"); … … 180 180 } 181 181 182 errno_t usb_generic_hid_init(usb_hid_dev_t *hid_dev, void **data)182 int usb_generic_hid_init(usb_hid_dev_t *hid_dev, void **data) 183 183 { 184 184 usb_hid_gen_fun_t *hid_fun; … … 202 202 ddf_fun_set_ops(fun, &usb_generic_hid_ops); 203 203 204 errno_t rc = ddf_fun_bind(fun);204 int rc = ddf_fun_bind(fun); 205 205 if (rc != EOK) { 206 206 usb_log_error("Could not bind DDF function: %s.\n",
Note:
See TracChangeset
for help on using the changeset viewer.