Skip to content

Commit

Permalink
ASoC: fsi: mark several data structures as const
Browse files Browse the repository at this point in the history
A driver's platform_device_id and device data should and can be const.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Uwe Kleine-König authored and Mark Brown committed Apr 1, 2015
1 parent 3b6281c commit 9a42ab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,

/* Interrupt */
Expand All @@ -1885,7 +1885,7 @@ static struct fsi_core fsi1_core = {
.imsk = IMSK,
};

static struct fsi_core fsi2_core = {
static const struct fsi_core fsi2_core = {
.ver = 2,

/* Interrupt */
Expand All @@ -1903,7 +1903,7 @@ static const struct of_device_id 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_fsi2", (kernel_ulong_t)&fsi2_core },
{},
Expand Down

0 comments on commit 9a42ab0

Please sign in to comment.