Skip to content

Commit c83e2a6

Browse files
ajaykathatKalle Valo
authored andcommitted
wilc1000: Move wilc1000 SDIO ID's from driver source to common header file
Moved macros used for Vendor/Device ID from wilc1000 driver to common header file and changed macro name for consistency with other macros. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Pali Rohár <pali@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200717051134.19160-1-ajay.kathat@microchip.com
1 parent 880e214 commit c83e2a6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎drivers/net/wireless/microchip/wilc1000/sdio.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <linux/clk.h>
88
#include <linux/mmc/sdio_func.h>
9+
#include <linux/mmc/sdio_ids.h>
910
#include <linux/mmc/host.h>
1011
#include <linux/mmc/sdio.h>
1112
#include <linux/of_irq.h>
@@ -15,11 +16,8 @@
1516

1617
#define SDIO_MODALIAS "wilc1000_sdio"
1718

18-
#define SDIO_VENDOR_ID_WILC 0x0296
19-
#define SDIO_DEVICE_ID_WILC 0x5347
20-
2119
static const struct sdio_device_id wilc_sdio_ids[] = {
22-
{ SDIO_DEVICE(SDIO_VENDOR_ID_WILC, SDIO_DEVICE_ID_WILC) },
20+
{ SDIO_DEVICE(SDIO_VENDOR_ID_MICROCHIP_WILC, SDIO_DEVICE_ID_MICROCHIP_WILC1000) },
2321
{ },
2422
};
2523

‎include/linux/mmc/sdio_ids.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
#define SDIO_DEVICE_ID_MEDIATEK_MT7663 0x7663
106106
#define SDIO_DEVICE_ID_MEDIATEK_MT7668 0x7668
107107

108+
#define SDIO_VENDOR_ID_MICROCHIP_WILC 0x0296
109+
#define SDIO_DEVICE_ID_MICROCHIP_WILC1000 0x5347
110+
108111
#define SDIO_VENDOR_ID_SIANO 0x039a
109112
#define SDIO_DEVICE_ID_SIANO_NOVA_B0 0x0201
110113
#define SDIO_DEVICE_ID_SIANO_NICE 0x0202

0 commit comments

Comments
 (0)