]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: add USB_VENDOR_AND_INTERFACE_INFO() macro
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 10 Jul 2012 22:10:06 +0000 (19:10 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Aug 2012 02:31:43 +0000 (19:31 -0700)
commit7b2ae8a339e28c61b5ec9b071ed40641538bf28c
treebc878766622adef4a6eaf8bfcc4bf72e35927a0b
parentc8d54c4c73b719db5cb977b61d14bc0c184050f3
USB: add USB_VENDOR_AND_INTERFACE_INFO() macro

commit d81a5d1956731c453b85c141458d4ff5d6cc5366 upstream.

A lot of Broadcom Bluetooth devices provides vendor specific interface
class and we are getting flooded by patches adding new device support.
This change will help us enable support for any other Broadcom with vendor
specific device that arrives in the future.

Only the product id changes for those devices, so this macro would be
perfect for us:

{ USB_VENDOR_AND_INTERFACE_INFO(0x0a5c, 0xff, 0x01, 0x01) }

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Acked-by: Henrik Rydberg <rydberg@bitmath.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb.h