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

Changeset 777e336 in mainline for uspace/drv/usbhid/subdrivers.c


Ignore:
Timestamp:
2011-04-12T15:59:44Z (11 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial
Children:
e7df6cd
Parents:
1cbb4b7
Message:

Minor changes in subdrivers API.

  • Changed vendor ID and product ID to uint16_t
  • Removed size of the path, ending with {0, 0}
  • Named structure initialization for usb_hid_subdrivers()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/subdrivers.c

    r1cbb4b7 r777e336  
    3737#include "usb/classes/hidut.h"
    3838
    39 static usb_hid_subdriver_usage_t path_kbd[] = {{USB_HIDUT_PAGE_KEYBOARD, 0}};
     39static usb_hid_subdriver_usage_t path_kbd[] = {
     40        {USB_HIDUT_PAGE_KEYBOARD, 0},
     41        {0, 0}
     42};
    4043
    4144const usb_hid_subdriver_mapping_t usb_hid_subdrivers[] = {
    4245        {
    4346                path_kbd,
    44                 1,
    4547                USB_HID_PATH_COMPARE_END
    4648                | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    47                 NULL,
    48                 NULL,
     49                0,
     50                0,
    4951                {
    50                         usb_kbd_init,
    51                         usb_kbd_deinit,
    52                         usb_kbd_polling_callback,
    53                         NULL
     52                        .init = usb_kbd_init,
     53                        .deinit = usb_kbd_deinit,
     54                        .poll = usb_kbd_polling_callback,
     55                        .poll_end = NULL
    5456                },
    5557               
    5658        },
    57         {NULL, 0, 0, NULL, NULL, {NULL, NULL, NULL, NULL}}
     59        {NULL, 0, 0, 0, {NULL, NULL, NULL, NULL}}
    5860};
    5961
Note: See TracChangeset for help on using the changeset viewer.