Changeset e60436b in mainline for uspace/drv/usbhid/usbhid.c
- Timestamp:
- 2011-04-21T19:58:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36f737a
- Parents:
- 3bcac68
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/usbhid.c
r3bcac68 re60436b 192 192 } 193 193 194 assert(hid_dev-> parser!= NULL);194 assert(hid_dev->report != NULL); 195 195 196 196 usb_log_debug("Compare flags: %d\n", mapping->compare); 197 size_t size = usb_hid_report_input_length(hid_dev-> parser, usage_path,197 size_t size = usb_hid_report_input_length(hid_dev->report, usage_path, 198 198 mapping->compare); 199 199 usb_log_debug("Size of the input report: %zuB\n", size); … … 341 341 } 342 342 343 hid_dev-> parser= (usb_hid_report_t *)(malloc(sizeof(343 hid_dev->report = (usb_hid_report_t *)(malloc(sizeof( 344 344 usb_hid_report_t))); 345 if (hid_dev-> parser== NULL) {345 if (hid_dev->report == NULL) { 346 346 usb_log_fatal("No memory!\n"); 347 347 free(hid_dev); … … 385 385 /* Get the report descriptor and parse it. */ 386 386 rc = usb_hid_process_report_descriptor(hid_dev->usb_dev, 387 hid_dev-> parser);387 hid_dev->report); 388 388 389 389 bool fallback = false; … … 583 583 584 584 // destroy the parser 585 if ((*hid_dev)-> parser!= NULL) {586 usb_hid_free_report((*hid_dev)-> parser);585 if ((*hid_dev)->report != NULL) { 586 usb_hid_free_report((*hid_dev)->report); 587 587 } 588 588
Note:
See TracChangeset
for help on using the changeset viewer.