Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f9d9184 in mainline


Ignore:
Timestamp:
2013-12-31T03:15:21Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
d0ca4c5
Parents:
9031228
Message:

libdrv, usbhid: Use index initialized arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usbhid.c

    r9031228 rf9d9184  
    5050/** Remote USB HID interface operations. */
    5151static const remote_iface_func_ptr_t remote_usbhid_iface_ops [] = {
    52         remote_usbhid_get_event_length,
    53         remote_usbhid_get_event,
    54         remote_usbhid_get_report_descriptor_length,
    55         remote_usbhid_get_report_descriptor
     52        [IPC_M_USBHID_GET_EVENT_LENGTH] = remote_usbhid_get_event_length,
     53        [IPC_M_USBHID_GET_EVENT] = remote_usbhid_get_event,
     54        [IPC_M_USBHID_GET_REPORT_DESCRIPTOR_LENGTH] =
     55            remote_usbhid_get_report_descriptor_length,
     56        [IPC_M_USBHID_GET_REPORT_DESCRIPTOR] = remote_usbhid_get_report_descriptor
    5657};
    5758
Note: See TracChangeset for help on using the changeset viewer.