Commit 4f100012 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Ulf Hansson

mmc: sdhci-esdhc-imx: Constify driver data

Variant specific driver data doesn't change at run-time, so mark it as
const to reflect that.
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 4e47345a
...@@ -146,38 +146,38 @@ struct esdhc_soc_data { ...@@ -146,38 +146,38 @@ struct esdhc_soc_data {
u32 flags; u32 flags;
}; };
static struct esdhc_soc_data esdhc_imx25_data = { static const struct esdhc_soc_data esdhc_imx25_data = {
.flags = ESDHC_FLAG_ERR004536, .flags = ESDHC_FLAG_ERR004536,
}; };
static struct esdhc_soc_data esdhc_imx35_data = { static const struct esdhc_soc_data esdhc_imx35_data = {
.flags = ESDHC_FLAG_ERR004536, .flags = ESDHC_FLAG_ERR004536,
}; };
static struct esdhc_soc_data esdhc_imx51_data = { static const struct esdhc_soc_data esdhc_imx51_data = {
.flags = 0, .flags = 0,
}; };
static struct esdhc_soc_data esdhc_imx53_data = { static const struct esdhc_soc_data esdhc_imx53_data = {
.flags = ESDHC_FLAG_MULTIBLK_NO_INT, .flags = ESDHC_FLAG_MULTIBLK_NO_INT,
}; };
static struct esdhc_soc_data usdhc_imx6q_data = { static const struct esdhc_soc_data usdhc_imx6q_data = {
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_MAN_TUNING, .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_MAN_TUNING,
}; };
static struct esdhc_soc_data usdhc_imx6sl_data = { static const struct esdhc_soc_data usdhc_imx6sl_data = {
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_ERR004536 | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_ERR004536
| ESDHC_FLAG_HS200, | ESDHC_FLAG_HS200,
}; };
static struct esdhc_soc_data usdhc_imx6sx_data = { static const struct esdhc_soc_data usdhc_imx6sx_data = {
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200, | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200,
}; };
static struct esdhc_soc_data usdhc_imx7d_data = { static const struct esdhc_soc_data usdhc_imx7d_data = {
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200
| ESDHC_FLAG_HS400, | ESDHC_FLAG_HS400,
......
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