diff options
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index dea39dc551d4..f717fbdaee8e 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -777,6 +777,22 @@ static inline int usb_make_path(struct usb_device *dev, char *buf, size_t size) | |||
777 | .bInterfaceProtocol = (pr) | 777 | .bInterfaceProtocol = (pr) |
778 | 778 | ||
779 | /** | 779 | /** |
780 | * USB_DEVICE_INTERFACE_NUMBER - describe a usb device with a specific interface number | ||
781 | * @vend: the 16 bit USB Vendor ID | ||
782 | * @prod: the 16 bit USB Product ID | ||
783 | * @num: bInterfaceNumber value | ||
784 | * | ||
785 | * This macro is used to create a struct usb_device_id that matches a | ||
786 | * specific interface number of devices. | ||
787 | */ | ||
788 | #define USB_DEVICE_INTERFACE_NUMBER(vend, prod, num) \ | ||
789 | .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \ | ||
790 | USB_DEVICE_ID_MATCH_INT_NUMBER, \ | ||
791 | .idVendor = (vend), \ | ||
792 | .idProduct = (prod), \ | ||
793 | .bInterfaceNumber = (num) | ||
794 | |||
795 | /** | ||
780 | * USB_DEVICE_INFO - macro used to describe a class of usb devices | 796 | * USB_DEVICE_INFO - macro used to describe a class of usb devices |
781 | * @cl: bDeviceClass value | 797 | * @cl: bDeviceClass value |
782 | * @sc: bDeviceSubClass value | 798 | * @sc: bDeviceSubClass value |