[usb] Allow for wildcard USB class IDs
Make the class ID a property of the USB driver (rather than a property of the USB device ID), and allow USB drivers to specify a wildcard ID for any of the three component IDs (class, subclass, or protocol). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -666,6 +666,7 @@ static struct usb_device_id dm96xx_ids[] = {
|
||||
struct usb_driver dm96xx_driver __usb_driver = {
|
||||
.ids = dm96xx_ids,
|
||||
.id_count = ( sizeof ( dm96xx_ids ) / sizeof ( dm96xx_ids[0] ) ),
|
||||
.class = USB_CLASS_ID ( USB_ANY_ID, USB_ANY_ID, USB_ANY_ID ),
|
||||
.score = USB_SCORE_NORMAL,
|
||||
.probe = dm96xx_probe,
|
||||
.remove = dm96xx_remove,
|
||||
|
||||
Reference in New Issue
Block a user