ASoC: fsl: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Wed, 18 Mar 2015 16:48:57 +0000 (17:48 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 22 Mar 2015 18:02:56 +0000 (18:02 +0000)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/mpc5200_psc_ac97.c
sound/soc/fsl/mpc5200_psc_i2s.c
sound/soc/fsl/pcm030-audio-fabric.c

index 08d2a8069b0abd584d668af96663f689514b4a14..0bab76051fd830dd0bc0a3d993341ad8cd759afe 100644 (file)
@@ -326,7 +326,7 @@ static int psc_ac97_of_remove(struct platform_device *op)
 }
 
 /* Match table for of_platform binding */
-static struct of_device_id psc_ac97_match[] = {
+static const struct of_device_id psc_ac97_match[] = {
        { .compatible = "fsl,mpc5200-psc-ac97", },
        { .compatible = "fsl,mpc5200b-psc-ac97", },
        {}
index 51fb0c00fe737d757da59a594ee3f125f776a022..d8232943ccb67c42471959d0cb6f4cd2e36114d9 100644 (file)
@@ -217,7 +217,7 @@ static int psc_i2s_of_remove(struct platform_device *op)
 }
 
 /* Match table for of_platform binding */
-static struct of_device_id psc_i2s_match[] = {
+static const struct of_device_id psc_i2s_match[] = {
        { .compatible = "fsl,mpc5200-psc-i2s", },
        { .compatible = "fsl,mpc5200b-psc-i2s", },
        {}
index c44459d24c50502d12c5ec1e9de86539139a0d3d..ec731223cab3d7bfbfe8208571a9c67e59276d3a 100644 (file)
@@ -113,7 +113,7 @@ static int pcm030_fabric_remove(struct platform_device *op)
        return ret;
 }
 
-static struct of_device_id pcm030_audio_match[] = {
+static const struct of_device_id pcm030_audio_match[] = {
        { .compatible = "phytec,pcm030-audio-fabric", },
        {}
 };