wilc1000: Move wilc1000 SDIO ID's from driver source to common header file
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 17 Jul 2020 05:11:38 +0000 (05:11 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 15:12:23 +0000 (18:12 +0300)
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
drivers/net/wireless/microchip/wilc1000/sdio.c
include/linux/mmc/sdio_ids.h

index 36eb589..3ece7b0 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <linux/clk.h>
 #include <linux/mmc/sdio_func.h>
+#include <linux/mmc/sdio_ids.h>
 #include <linux/mmc/host.h>
 #include <linux/mmc/sdio.h>
 #include <linux/of_irq.h>
 
 #define SDIO_MODALIAS "wilc1000_sdio"
 
-#define SDIO_VENDOR_ID_WILC 0x0296
-#define SDIO_DEVICE_ID_WILC 0x5347
-
 static const struct sdio_device_id wilc_sdio_ids[] = {
-       { SDIO_DEVICE(SDIO_VENDOR_ID_WILC, SDIO_DEVICE_ID_WILC) },
+       { SDIO_DEVICE(SDIO_VENDOR_ID_MICROCHIP_WILC, SDIO_DEVICE_ID_MICROCHIP_WILC1000) },
        { },
 };
 
index 15ed8ce..519820d 100644 (file)
 #define SDIO_DEVICE_ID_MEDIATEK_MT7663         0x7663
 #define SDIO_DEVICE_ID_MEDIATEK_MT7668         0x7668
 
+#define SDIO_VENDOR_ID_MICROCHIP_WILC          0x0296
+#define SDIO_DEVICE_ID_MICROCHIP_WILC1000      0x5347
+
 #define SDIO_VENDOR_ID_SIANO                   0x039a
 #define SDIO_DEVICE_ID_SIANO_NOVA_B0           0x0201
 #define SDIO_DEVICE_ID_SIANO_NICE              0x0202