ASoC: fsi: mark several data structures as const
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 31 Mar 2015 14:48:57 +0000 (16:48 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Apr 2015 08:31:19 +0000 (09:31 +0100)
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>
sound/soc/sh/fsi.c

index 5d26f8c9865033a05fb950cfb0041f0a3ff9f47d..0c2af21b0b82513176ac841ae8e394cd6711eead 100644 (file)
@@ -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 */
@@ -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 */
@@ -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 },
        {},