summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 92cbd47ec..cd3a7ac86 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -494,6 +494,16 @@ do { \
# define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
#endif
+
+#ifndef USB_DEVICE_AND_INTERFACE_INFO
+# define USB_DEVICE_AND_INTERFACE_INFO(vend,prod,cl,sc,pr) \
+ .match_flags = USB_DEVICE_ID_MATCH_INT_INFO \
+ | USB_DEVICE_ID_MATCH_DEVICE, \
+ .idVendor = (vend), .idProduct = (prod), \
+ .bInterfaceClass = (cl), \
+ .bInterfaceSubClass = (sc), .bInterfaceProtocol = (pr)
+#endif
+
#endif
/*
* Local variables: