ASoC: rcar: mark device data as constant
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 31 Mar 2015 18:35:09 +0000 (20:35 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2015 08:58:40 +0000 (09:58 +0100)
A driver's device data should and can be const. This is a follow-up on
commit 33187fb4a203 (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>
sound/soc/sh/rcar/core.c

index 9b0de428c45b4d52244f1c1d022255db0b2e27ba..6f60149acdbffba1568243576bb069bad63c106d 100644 (file)
 #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,
 };