]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Use USB_VENDOR_AND_INTERFACE() for Broadcom devices
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:36:49 +0000 (15:36 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:08 +0000 (03:31 +0100)
commit 92c385f46b30f4954e9dd2d2005c12d233b479ea upstream.

Many Broadcom devices has a vendor specific devices class, with this rule
we match all existent and future controllers with this behavior.

We also remove old rules to that matches product id for Broadcom devices.

Tested-by: John Hommel <john.hommel@hp.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/bluetooth/btusb.c

index 8cec91a10c4461382d3b6048fd72b918d0694e85..801b1968cb6ae7c3423fcedca6cfe334af00495f 100644 (file)
@@ -102,16 +102,14 @@ static struct usb_device_id btusb_table[] = {
 
        /* Broadcom BCM20702A0 */
        { USB_DEVICE(0x0489, 0xe042) },
-       { USB_DEVICE(0x0a5c, 0x21e3) },
-       { USB_DEVICE(0x0a5c, 0x21e6) },
-       { USB_DEVICE(0x0a5c, 0x21e8) },
-       { USB_DEVICE(0x0a5c, 0x21f3) },
-       { USB_DEVICE(0x0a5c, 0x21f4) },
        { USB_DEVICE(0x413c, 0x8197) },
 
        /* Foxconn - Hon Hai */
        { USB_DEVICE(0x0489, 0xe033) },
 
+       /*Broadcom devices with vendor specific id */
+       { USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0xff, 0x01, 0x01) },
+
        { }     /* Terminating entry */
 };