]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: Constify dev_pm_ops variables
authorAxel Lin <axel.lin@ingics.com>
Fri, 17 Jul 2015 02:54:49 +0000 (10:54 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jul 2015 11:14:48 +0000 (12:14 +0100)
The dev_pm_ops variables are not modified after initialization in these
drivers, so make them const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm2200.c
sound/soc/codecs/wm5100.c
sound/soc/codecs/wm8962.c

index c83083285e532711406422b2f8e1619f6f4de7fa..3e3f638210a04a44db7b166a652bbbe5cee00dd4 100644 (file)
@@ -2481,7 +2481,7 @@ static int wm2200_runtime_resume(struct device *dev)
 }
 #endif
 
-static struct dev_pm_ops wm2200_pm = {
+static const struct dev_pm_ops wm2200_pm = {
        SET_RUNTIME_PM_OPS(wm2200_runtime_suspend, wm2200_runtime_resume,
                           NULL)
 };
index 4c10cd88c1af66a1a54b168c34844c190e077b9d..3ea29cfe51fca432d901ad727ca73a9c9b165b0d 100644 (file)
@@ -2708,7 +2708,7 @@ static int wm5100_runtime_resume(struct device *dev)
 }
 #endif
 
-static struct dev_pm_ops wm5100_pm = {
+static const struct dev_pm_ops wm5100_pm = {
        SET_RUNTIME_PM_OPS(wm5100_runtime_suspend, wm5100_runtime_resume,
                           NULL)
 };
index c5748fd4f2962a816308faf605f7aee7116b970a..ad16414b28e7d3a0b83fa4a47d428366e27530a2 100644 (file)
@@ -3859,7 +3859,7 @@ static int wm8962_runtime_suspend(struct device *dev)
 }
 #endif
 
-static struct dev_pm_ops wm8962_pm = {
+static const struct dev_pm_ops wm8962_pm = {
        SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL)
 };