Changes in uspace/drv/usbhid/main.c [b20de1d:5e07e2b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
rb20de1d r5e07e2b5 75 75 static int usb_hid_try_add_device(usb_device_t *dev) 76 76 { 77 assert(dev != NULL);78 79 77 /* 80 78 * Initialize device (get and process descriptors, get address, etc.) … … 114 112 hid_fun->ops = &hid_dev->ops; 115 113 hid_fun->driver_data = hid_dev; // TODO: maybe change to hid_dev->data 116 117 /*118 * 1) subdriver vytvori vlastnu ddf_fun, vlastne ddf_dev_ops, ktore da119 * do nej.120 * 2) do tych ops do .interfaces[DEV_IFACE_USBHID (asi)] priradi121 * vyplnenu strukturu usbhid_iface_t.122 * 3) klientska aplikacia - musi si rucne vytvorit telefon123 * (devman_device_connect() - cesta k zariadeniu (/hw/pci0/...) az124 * k tej fcii.125 * pouzit usb/classes/hid/iface.h - prvy int je telefon126 */127 114 128 115 rc = ddf_fun_bind(hid_fun); … … 191 178 usb_log_debug("usb_hid_add_device()\n"); 192 179 193 if (dev == NULL) {194 usb_log_warning("Wrong parameter given for add_device().\n");195 return EINVAL;196 }197 198 180 if (dev->interface_no < 0) { 199 181 usb_log_warning("Device is not a supported HID device.\n");
Note:
See TracChangeset
for help on using the changeset viewer.