Commit 4f7872ae authored by Pali Rohár's avatar Pali Rohár Committed by Ulf Hansson

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

Define appropriate macro names for consistency with other macros.
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20200629072144.24351-1-pali@kernel.orgSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 92a21738
...@@ -1038,10 +1038,10 @@ static int rsi_probe(struct sdio_func *pfunction, ...@@ -1038,10 +1038,10 @@ static int rsi_probe(struct sdio_func *pfunction,
goto fail_free_adapter; goto fail_free_adapter;
} }
if (pfunction->device == RSI_SDIO_PID_9113) { if (pfunction->device == SDIO_DEVICE_ID_RSI_9113) {
rsi_dbg(ERR_ZONE, "%s: 9113 module detected\n", __func__); rsi_dbg(ERR_ZONE, "%s: 9113 module detected\n", __func__);
adapter->device_model = RSI_DEV_9113; adapter->device_model = RSI_DEV_9113;
} else if (pfunction->device == RSI_SDIO_PID_9116) { } else if (pfunction->device == SDIO_DEVICE_ID_RSI_9116) {
rsi_dbg(ERR_ZONE, "%s: 9116 module detected\n", __func__); rsi_dbg(ERR_ZONE, "%s: 9116 module detected\n", __func__);
adapter->device_model = RSI_DEV_9116; adapter->device_model = RSI_DEV_9116;
} else { } else {
...@@ -1526,8 +1526,8 @@ static const struct dev_pm_ops rsi_pm_ops = { ...@@ -1526,8 +1526,8 @@ static const struct dev_pm_ops rsi_pm_ops = {
#endif #endif
static const struct sdio_device_id rsi_dev_table[] = { static const struct sdio_device_id rsi_dev_table[] = {
{ SDIO_DEVICE(RSI_SDIO_VENDOR_ID, RSI_SDIO_PID_9113) }, { SDIO_DEVICE(SDIO_VENDOR_ID_RSI, SDIO_DEVICE_ID_RSI_9113) },
{ SDIO_DEVICE(RSI_SDIO_VENDOR_ID, RSI_SDIO_PID_9116) }, { SDIO_DEVICE(SDIO_VENDOR_ID_RSI, SDIO_DEVICE_ID_RSI_9116) },
{ /* Blank */}, { /* Blank */},
}; };
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <linux/mmc/sdio_ids.h> #include <linux/mmc/sdio_ids.h>
#include "rsi_main.h" #include "rsi_main.h"
#define RSI_SDIO_VENDOR_ID 0x041B
#define RSI_SDIO_PID_9113 0x9330
#define RSI_SDIO_PID_9116 0x9116
enum sdio_interrupt_type { enum sdio_interrupt_type {
BUFFER_FULL = 0x0, BUFFER_FULL = 0x0,
BUFFER_AVAILABLE = 0x2, BUFFER_AVAILABLE = 0x2,
......
...@@ -118,6 +118,10 @@ ...@@ -118,6 +118,10 @@
#define SDIO_DEVICE_ID_SIANO_NOVA_A0 0x1100 #define SDIO_DEVICE_ID_SIANO_NOVA_A0 0x1100
#define SDIO_DEVICE_ID_SIANO_STELLAR 0x5347 #define SDIO_DEVICE_ID_SIANO_STELLAR 0x5347
#define SDIO_VENDOR_ID_RSI 0x041b
#define SDIO_DEVICE_ID_RSI_9113 0x9330
#define SDIO_DEVICE_ID_RSI_9116 0x9116
#define SDIO_VENDOR_ID_TI_WL1251 0x104c #define SDIO_VENDOR_ID_TI_WL1251 0x104c
#define SDIO_DEVICE_ID_TI_WL1251 0x9066 #define SDIO_DEVICE_ID_TI_WL1251 0x9066
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment