Skip to content

Commit baaa110

Browse files
palistorulf
authored andcommitted
mmc: sdio: Move SDIO IDs from btmtksdio driver to common include file
Define appropriate macro names for consistency with other macros. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Ganapathi Bhat <[email protected]>
1 parent 649c7d7 commit baaa110

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/bluetooth/btmtksdio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ static const struct btmtksdio_data mt7668_data = {
5151
};
5252

5353
static const struct sdio_device_id btmtksdio_table[] = {
54-
{SDIO_DEVICE(SDIO_VENDOR_ID_MEDIATEK, 0x7663),
54+
{SDIO_DEVICE(SDIO_VENDOR_ID_MEDIATEK, SDIO_DEVICE_ID_MEDIATEK_MT7663),
5555
.driver_data = (kernel_ulong_t)&mt7663_data },
56-
{SDIO_DEVICE(SDIO_VENDOR_ID_MEDIATEK, 0x7668),
56+
{SDIO_DEVICE(SDIO_VENDOR_ID_MEDIATEK, SDIO_DEVICE_ID_MEDIATEK_MT7668),
5757
.driver_data = (kernel_ulong_t)&mt7668_data },
5858
{ } /* Terminating entry */
5959
};

include/linux/mmc/sdio_ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
#define SDIO_DEVICE_ID_MARVELL_8987_BT 0x914a
8181

8282
#define SDIO_VENDOR_ID_MEDIATEK 0x037a
83+
#define SDIO_DEVICE_ID_MEDIATEK_MT7663 0x7663
84+
#define SDIO_DEVICE_ID_MEDIATEK_MT7668 0x7668
8385

8486
#define SDIO_VENDOR_ID_SIANO 0x039a
8587
#define SDIO_DEVICE_ID_SIANO_NOVA_B0 0x0201

0 commit comments

Comments
 (0)