diff mbox

[v2,4/4] ASoC: mark of_device_id and device data as constant

Message ID 1427813339-23817-5-git-send-email-u.kleine-koenig@pengutronix.de (mailing list archive)
State Accepted
Commit 969b8619069f0e4da767c54481dcc10812f949a5
Headers show

Commit Message

Uwe Kleine-König March 31, 2015, 2:48 p.m. UTC
A driver's of_device_id and device data should and can be const.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 sound/soc/sh/rcar/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Uwe Kleine-König April 1, 2015, 9:12 a.m. UTC | #1
On Tue, Mar 31, 2015 at 04:48:59PM +0200, Uwe Kleine-König wrote:
> A driver's of_device_id and device data should and can be const.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This patch is obsoleted by my patch sent with Message-Id:
20150331183509.GN17728@pengutronix.de [1].

Best regards
Uwe

[1] http://mid.gmane.org/20150331183509.GN17728@pengutronix.de
diff mbox

Patch

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 3d8e4d60c83d..9f48d75fa992 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -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,
 };