Changeset daf199f in mainline


Ignore:
Timestamp:
2013-01-04T14:18:49Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
237df2f
Parents:
b4c1c95
Message:

libusbdev: Drop special handling of multiinterface device match id generation.

Add class matchid even if class is USB_CLASS_USE_INTERFACE.
usbmid match id will handle this.

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/usbmid.ma

    rb4c1c95 rdaf199f  
     1100 usb&class=use-interface
    12100 usb&mid
  • uspace/lib/usbdev/src/recognise.c

    rb4c1c95 rdaf199f  
    250250        }       
    251251
    252         /*
    253          * If the device class points to interface we skip adding
    254          * class directly but we add a multi interface device.
    255          */
    256         if (device_descriptor->device_class != USB_CLASS_USE_INTERFACE) {
    257                 ADD_MATCHID_OR_RETURN(matches, 50, "usb&class=%s",
    258                     usb_str_class(device_descriptor->device_class));
    259         } else {
    260                 ADD_MATCHID_OR_RETURN(matches, 50, "usb&mid");
    261         }
     252        /* Class match id */
     253        ADD_MATCHID_OR_RETURN(matches, 50, "usb&class=%s",
     254            usb_str_class(device_descriptor->device_class));
    262255       
    263256        /* As a last resort, try fallback driver. */
Note: See TracChangeset for help on using the changeset viewer.