History

mmc: sdio: Move SDIO IDs from btmrvl driver to common include file

Define appropriate macro names for consistency with other Marvell macros.

Pali Rohár committed 6 years ago

Commit 649c7d71 parent 7d14c682 files · +17 −9Browse files

Unified · Split

2 files
  1. drivers/bluetooth/btmrvl_sdio.c +9 −9
  2. include/linux/mmc/sdio_ids.h +8 −0
drivers/bluetooth/btmrvl_sdio.c+9−9
@@ -355,31 +355,31 @@ static const struct btmrvl_sdio_device btmrvl_sdio_sd8997 = { · 354 unmodified lines
355355
356356 static const struct sdio_device_id btmrvl_sdio_ids[] = {
357357 /* Marvell SD8688 Bluetooth device */
358− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x9105),
358+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8688_BT),
359359 .driver_data = (unsigned long)&btmrvl_sdio_sd8688 },
360360 /* Marvell SD8787 Bluetooth device */
361− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x911A),
361+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8787_BT),
362362 .driver_data = (unsigned long)&btmrvl_sdio_sd8787 },
363363 /* Marvell SD8787 Bluetooth AMP device */
364− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x911B),
364+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8787_BT_AMP),
365365 .driver_data = (unsigned long)&btmrvl_sdio_sd8787 },
366366 /* Marvell SD8797 Bluetooth device */
367− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x912A),
367+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8797_BT),
368368 .driver_data = (unsigned long)&btmrvl_sdio_sd8797 },
369369 /* Marvell SD8887 Bluetooth device */
370− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x9136),
370+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8887_BT),
371371 .driver_data = (unsigned long)&btmrvl_sdio_sd8887 },
372372 /* Marvell SD8897 Bluetooth device */
373− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x912E),
373+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8897_BT),
374374 .driver_data = (unsigned long)&btmrvl_sdio_sd8897 },
375375 /* Marvell SD8977 Bluetooth device */
376− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x9146),
376+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8977_BT),
377377 .driver_data = (unsigned long)&btmrvl_sdio_sd8977 },
378378 /* Marvell SD8987 Bluetooth device */
379− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x914A),
379+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8987_BT),
380380 .driver_data = (unsigned long)&btmrvl_sdio_sd8987 },
381381 /* Marvell SD8997 Bluetooth device */
382− { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, 0x9142),
382+ { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8997_BT),
383383 .driver_data = (unsigned long)&btmrvl_sdio_sd8997 },
384384
385385 { } /* Terminating entry */
include/linux/mmc/sdio_ids.h+8−0
@@ -60,16 +60,24 @@ · 59 unmodified lines
6060 #define SDIO_DEVICE_ID_MARVELL_8688_BT 0x9105
6161 #define SDIO_DEVICE_ID_MARVELL_8786_WLAN 0x9116
6262 #define SDIO_DEVICE_ID_MARVELL_8787_WLAN 0x9119
63+#define SDIO_DEVICE_ID_MARVELL_8787_BT 0x911a
64+#define SDIO_DEVICE_ID_MARVELL_8787_BT_AMP 0x911b
6365 #define SDIO_DEVICE_ID_MARVELL_8797_F0 0x9128
6466 #define SDIO_DEVICE_ID_MARVELL_8797_WLAN 0x9129
67+#define SDIO_DEVICE_ID_MARVELL_8797_BT 0x912a
6568 #define SDIO_DEVICE_ID_MARVELL_8897_WLAN 0x912d
69+#define SDIO_DEVICE_ID_MARVELL_8897_BT 0x912e
6670 #define SDIO_DEVICE_ID_MARVELL_8887_F0 0x9134
6771 #define SDIO_DEVICE_ID_MARVELL_8887_WLAN 0x9135
72+#define SDIO_DEVICE_ID_MARVELL_8887_BT 0x9136
6873 #define SDIO_DEVICE_ID_MARVELL_8801_WLAN 0x9139
6974 #define SDIO_DEVICE_ID_MARVELL_8997_F0 0x9140
7075 #define SDIO_DEVICE_ID_MARVELL_8997_WLAN 0x9141
76+#define SDIO_DEVICE_ID_MARVELL_8997_BT 0x9142
7177 #define SDIO_DEVICE_ID_MARVELL_8977_WLAN 0x9145
78+#define SDIO_DEVICE_ID_MARVELL_8977_BT 0x9146
7279 #define SDIO_DEVICE_ID_MARVELL_8987_WLAN 0x9149
80+#define SDIO_DEVICE_ID_MARVELL_8987_BT 0x914a
7381
7482 #define SDIO_VENDOR_ID_MEDIATEK 0x037a
7583

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t