Skip to content

Commit

Permalink
ASoC: rcar: mark device data as constant
Browse files Browse the repository at this point in the history
A driver's device data should and can be const. This is a follow-up on
commit 33187fb (ASoC: rsnd: constify of_device_id array) which
marked the of_device_id as 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 3b7843f commit 969b861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sh/rcar/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@
#define RSND_RATES SNDRV_PCM_RATE_8000_96000
#define RSND_FMTS (SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S16_LE)

static struct rsnd_of_data rsnd_of_data_gen1 = {
static const struct rsnd_of_data rsnd_of_data_gen1 = {
.flags = RSND_GEN1,
};

static struct rsnd_of_data rsnd_of_data_gen2 = {
static const struct rsnd_of_data rsnd_of_data_gen2 = {
.flags = RSND_GEN2,
};

Expand Down

0 comments on commit 969b861

Please sign in to comment.