Skip to content

Commit baaa110

Browse files
paliUlf Hansson
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 <pali@kernel.org> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Link: https://lore.kernel.org/r/20200522144412.19712-6-pali@kernel.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Ganapathi Bhat <ganapathi.bhat@nxp.com>
1 parent 649c7d7 commit baaa110

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎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)