]> Pileus Git - ~andy/linux/commitdiff
pwm: Constify OF match tables
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 18 Apr 2013 08:04:14 +0000 (10:04 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Tue, 23 Apr 2013 05:42:20 +0000 (07:42 +0200)
A few drivers already annotate this properly. Make the same change for
all other OF supporting drivers.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/pwm/pwm-lpc32xx.c
drivers/pwm/pwm-mxs.c
drivers/pwm/pwm-spear.c
drivers/pwm/pwm-tegra.c
drivers/pwm/pwm-twl-led.c
drivers/pwm/pwm-twl.c

index b3f0d0dfd74808ff9469f72a0f371bca7ebd85be..b55cc5c1d614ad098011cadd363b5872c04d1031 100644 (file)
@@ -145,7 +145,7 @@ static int lpc32xx_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&lpc32xx->chip);
 }
 
-static struct of_device_id lpc32xx_pwm_dt_ids[] = {
+static const struct of_device_id lpc32xx_pwm_dt_ids[] = {
        { .compatible = "nxp,lpc3220-pwm", },
        { /* sentinel */ }
 };
index 23d51806aeaa2c9fecb6235d3a14e028c758d824..3febdddf71f9aa77a8d240d126c008fccf8827d2 100644 (file)
@@ -179,7 +179,7 @@ static int mxs_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&mxs->chip);
 }
 
-static struct of_device_id mxs_pwm_dt_ids[] = {
+static const struct of_device_id mxs_pwm_dt_ids[] = {
        { .compatible = "fsl,imx23-pwm", },
        { /* sentinel */ }
 };
index 9563599a117ee2257b6a720fa14aef7f2bcec1e4..6d99e2cbdc739eb0c4dd84a998d6d69a37013402 100644 (file)
@@ -248,7 +248,7 @@ static int spear_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&pc->chip);
 }
 
-static struct of_device_id spear_pwm_of_match[] = {
+static const struct of_device_id spear_pwm_of_match[] = {
        { .compatible = "st,spear320-pwm" },
        { .compatible = "st,spear1340-pwm" },
        { }
index af3ab48cb7effb57f1190d890cac18c519179322..3d75f4a88f982395a148aca6906dd1fbf27c87cf 100644 (file)
@@ -233,7 +233,7 @@ static int tegra_pwm_remove(struct platform_device *pdev)
        return pwmchip_remove(&pc->chip);
 }
 
-static struct of_device_id tegra_pwm_of_match[] = {
+static const struct of_device_id tegra_pwm_of_match[] = {
        { .compatible = "nvidia,tegra20-pwm" },
        { .compatible = "nvidia,tegra30-pwm" },
        { }
index f912e87aed885fb9f5da357783063176210427a4..29d1bba4804ec95fa7c249ebbe6ad3ea057fe08a 100644 (file)
@@ -323,7 +323,7 @@ static int twl_pwmled_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id twl_pwmled_of_match[] = {
+static const struct of_device_id twl_pwmled_of_match[] = {
        { .compatible = "ti,twl4030-pwmled" },
        { .compatible = "ti,twl6030-pwmled" },
        { },
index 2782001ba18379e6e434a5a390c58889ea619699..eef910580eaef3c355bb0384759b16155924e9d8 100644 (file)
@@ -335,7 +335,7 @@ static int twl_pwm_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id twl_pwm_of_match[] = {
+static const struct of_device_id twl_pwm_of_match[] = {
        { .compatible = "ti,twl4030-pwm" },
        { .compatible = "ti,twl6030-pwm" },
        { },