Changes in uspace/lib/usbhid/src/hidpath.c [b7fd2a0:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/src/hidpath.c
rb7fd2a0 r38d150e 73 73 * @return Error code 74 74 */ 75 errno_t usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path,75 int usb_hid_report_path_append_item(usb_hid_report_path_t *usage_path, 76 76 int32_t usage_page, int32_t usage) 77 77 { … … 191 191 * @param flags Flags determining the mode of comparison 192 192 * 193 * @return 0if both paths are identical, non zero number otherwise193 * @return EOK if both paths are identical, non zero number otherwise 194 194 * 195 195 */ … … 213 213 // Empty path match all others 214 214 if (path->depth == 0) { 215 return 0;215 return EOK; 216 216 } 217 217 … … 239 239 if (USB_HID_SAME_USAGE(report_item->usage, 240 240 path_item->usage)) 241 return 0;241 return EOK; 242 242 } else { 243 return 0;243 return EOK; 244 244 } 245 245 } … … 285 285 ((report_link == &report_path->items.head) && 286 286 (path_link == &path->items.head))) { 287 return 0;287 return EOK; 288 288 } else { 289 289 return 1; … … 297 297 298 298 if (list_empty(&path->items)) { 299 return 0;299 return EOK; 300 300 } 301 301 … … 320 320 321 321 if (path_link == &path->items.head) { 322 return 0;322 return EOK; 323 323 } else { 324 324 return 1; … … 327 327 328 328 default: 329 return -1;329 return EINVAL; 330 330 } 331 331 } … … 423 423 * @return Error code 424 424 */ 425 errno_t usb_hid_report_path_set_report_id(usb_hid_report_path_t *path,425 int usb_hid_report_path_set_report_id(usb_hid_report_path_t *path, 426 426 uint8_t report_id) 427 427 {
Note:
See TracChangeset
for help on using the changeset viewer.