Ignore:
File:
1 edited

Legend:

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

    rb20de1d r5e07e2b5  
    7575static int usb_hid_try_add_device(usb_device_t *dev)
    7676{
    77         assert(dev != NULL);
    78        
    7977        /*
    8078         * Initialize device (get and process descriptors, get address, etc.)
     
    114112        hid_fun->ops = &hid_dev->ops;
    115113        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          */
    127114
    128115        rc = ddf_fun_bind(hid_fun);
     
    191178        usb_log_debug("usb_hid_add_device()\n");
    192179       
    193         if (dev == NULL) {
    194                 usb_log_warning("Wrong parameter given for add_device().\n");
    195                 return EINVAL;
    196         }
    197        
    198180        if (dev->interface_no < 0) {
    199181                usb_log_warning("Device is not a supported HID device.\n");
Note: See TracChangeset for help on using the changeset viewer.