mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
Bluetooth: btmtk: hide unused btmtk_mt6639_devs[] array
When USB support is disabled, the array is not referenced anywhere,
causing a warning:
drivers/bluetooth/btmtk.c:35:3: error: 'btmtk_mt6639_devs' defined but not used [-Werror=unused-const-variable=]
35 | } btmtk_mt6639_devs[] = {
| ^~~~~~~~~~~~~~~~~
Move it into the #ifdef block.
Fixes: 28b7c5a6db ("Bluetooth: btmtk: Add MT6639 (MT7927) Bluetooth support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
751b06a28b
commit
81f971c6ab
|
|
@ -25,22 +25,6 @@
|
|||
/* It is for mt79xx iso data transmission setting */
|
||||
#define MTK_ISO_THRESHOLD 264
|
||||
|
||||
/* Known MT6639 (MT7927) Bluetooth USB devices.
|
||||
* Used to scope the zero-CHIPID workaround to real MT6639 hardware,
|
||||
* since some boards return 0x0000 from the MMIO chip ID register.
|
||||
*/
|
||||
static const struct {
|
||||
u16 vendor;
|
||||
u16 product;
|
||||
} btmtk_mt6639_devs[] = {
|
||||
{ 0x0489, 0xe13a }, /* ASUS ROG Crosshair X870E Hero */
|
||||
{ 0x0489, 0xe0fa }, /* Lenovo Legion Pro 7 16ARX9 */
|
||||
{ 0x0489, 0xe10f }, /* Gigabyte Z790 AORUS MASTER X */
|
||||
{ 0x0489, 0xe110 }, /* MSI X870E Ace Max */
|
||||
{ 0x0489, 0xe116 }, /* TP-Link Archer TBE550E */
|
||||
{ 0x13d3, 0x3588 }, /* ASUS ROG STRIX X870E-E */
|
||||
};
|
||||
|
||||
struct btmtk_patch_header {
|
||||
u8 datetime[16];
|
||||
u8 platform[4];
|
||||
|
|
@ -483,6 +467,22 @@ int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
|
|||
EXPORT_SYMBOL_GPL(btmtk_process_coredump);
|
||||
|
||||
#if IS_ENABLED(CONFIG_BT_HCIBTUSB_MTK)
|
||||
/* Known MT6639 (MT7927) Bluetooth USB devices.
|
||||
* Used to scope the zero-CHIPID workaround to real MT6639 hardware,
|
||||
* since some boards return 0x0000 from the MMIO chip ID register.
|
||||
*/
|
||||
static const struct {
|
||||
u16 vendor;
|
||||
u16 product;
|
||||
} btmtk_mt6639_devs[] = {
|
||||
{ 0x0489, 0xe13a }, /* ASUS ROG Crosshair X870E Hero */
|
||||
{ 0x0489, 0xe0fa }, /* Lenovo Legion Pro 7 16ARX9 */
|
||||
{ 0x0489, 0xe10f }, /* Gigabyte Z790 AORUS MASTER X */
|
||||
{ 0x0489, 0xe110 }, /* MSI X870E Ace Max */
|
||||
{ 0x0489, 0xe116 }, /* TP-Link Archer TBE550E */
|
||||
{ 0x13d3, 0x3588 }, /* ASUS ROG STRIX X870E-E */
|
||||
};
|
||||
|
||||
static void btmtk_usb_wmt_recv(struct urb *urb)
|
||||
{
|
||||
struct hci_dev *hdev = urb->context;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user