Added BlueZ build scripts
[ti-bt/build-utils.git] / patches / 0001-compat-wireless-usb-missing-macro.patch
1 --- a/drivers/bluetooth/btusb.c 2012-10-29 17:00:17.000000000 +0200
2 +++ b/drivers/bluetooth/btusb.c 2012-10-31 15:32:19.000000000 +0200
3 @@ -29,6 +29,27 @@
4  
5  #define VERSION "0.6"
6  
7 +/**
8 + * USB_VENDOR_AND_INTERFACE_INFO - describe a specific usb vendor with a class of usb interfaces
9 + * @vend: the 16 bit USB Vendor ID
10 + * @cl: bInterfaceClass value
11 + * @sc: bInterfaceSubClass value
12 + * @pr: bInterfaceProtocol value
13 + *
14 + * This macro is used to create a struct usb_device_id that matches a
15 + * specific vendor with a specific class of interfaces.
16 + *
17 + * This is especially useful when explicitly matching devices that have
18 + * vendor specific bDeviceClass values, but standards-compliant interfaces.
19 + */
20 +#define USB_VENDOR_AND_INTERFACE_INFO(vend, cl, sc, pr) \
21 +       .match_flags = USB_DEVICE_ID_MATCH_INT_INFO \
22 +               | USB_DEVICE_ID_MATCH_VENDOR, \
23 +       .idVendor = (vend), \
24 +       .bInterfaceClass = (cl), \
25 +       .bInterfaceSubClass = (sc), \
26 +       .bInterfaceProtocol = (pr)
27 +
28  static bool ignore_dga;
29  static bool ignore_csr;
30  static bool ignore_sniffer;