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