Commit 9a42ab04 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoC: fsi: mark several data structures as const

A driver's platform_device_id and device data should and can be const.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3b6281cf
...@@ -1876,7 +1876,7 @@ static void fsi_handler_init(struct fsi_priv *fsi, ...@@ -1876,7 +1876,7 @@ static void fsi_handler_init(struct fsi_priv *fsi,
} }
} }
static struct fsi_core fsi1_core = { static const struct fsi_core fsi1_core = {
.ver = 1, .ver = 1,
/* Interrupt */ /* Interrupt */
...@@ -1885,7 +1885,7 @@ static struct fsi_core fsi1_core = { ...@@ -1885,7 +1885,7 @@ static struct fsi_core fsi1_core = {
.imsk = IMSK, .imsk = IMSK,
}; };
static struct fsi_core fsi2_core = { static const struct fsi_core fsi2_core = {
.ver = 2, .ver = 2,
/* Interrupt */ /* Interrupt */
...@@ -1903,7 +1903,7 @@ static const struct of_device_id fsi_of_match[] = { ...@@ -1903,7 +1903,7 @@ static const struct of_device_id fsi_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, fsi_of_match); MODULE_DEVICE_TABLE(of, fsi_of_match);
static struct platform_device_id fsi_id_table[] = { static const struct platform_device_id fsi_id_table[] = {
{ "sh_fsi", (kernel_ulong_t)&fsi1_core }, { "sh_fsi", (kernel_ulong_t)&fsi1_core },
{ "sh_fsi2", (kernel_ulong_t)&fsi2_core }, { "sh_fsi2", (kernel_ulong_t)&fsi2_core },
{}, {},
......
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