aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-04-18 04:04:14 -0400
committerThierry Reding <thierry.reding@avionic-design.de>2013-04-23 01:42:20 -0400
commitf1a8870aeb5baeb58f0613d1f1e1dca967127fbd (patch)
treec14dd02d37a1db1141c43507f41a05ddfe57d9bf /drivers/pwm
parentbdd7cf97153d354f654379563483bdb5a774ef16 (diff)
pwm: Constify OF match tables
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-lpc32xx.c2
-rw-r--r--drivers/pwm/pwm-mxs.c2
-rw-r--r--drivers/pwm/pwm-spear.c2
-rw-r--r--drivers/pwm/pwm-tegra.c2
-rw-r--r--drivers/pwm/pwm-twl-led.c2
-rw-r--r--drivers/pwm/pwm-twl.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c
index b3f0d0dfd748..b55cc5c1d614 100644
--- a/drivers/pwm/pwm-lpc32xx.c
+++ b/drivers/pwm/pwm-lpc32xx.c
@@ -145,7 +145,7 @@ static int lpc32xx_pwm_remove(struct platform_device *pdev)
145 return pwmchip_remove(&lpc32xx->chip); 145 return pwmchip_remove(&lpc32xx->chip);
146} 146}
147 147
148static struct of_device_id lpc32xx_pwm_dt_ids[] = { 148static const struct of_device_id lpc32xx_pwm_dt_ids[] = {
149 { .compatible = "nxp,lpc3220-pwm", }, 149 { .compatible = "nxp,lpc3220-pwm", },
150 { /* sentinel */ } 150 { /* sentinel */ }
151}; 151};
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index 23d51806aeaa..3febdddf71f9 100644
--- a/drivers/pwm/pwm-mxs.c
+++ b/drivers/pwm/pwm-mxs.c
@@ -179,7 +179,7 @@ static int mxs_pwm_remove(struct platform_device *pdev)
179 return pwmchip_remove(&mxs->chip); 179 return pwmchip_remove(&mxs->chip);
180} 180}
181 181
182static struct of_device_id mxs_pwm_dt_ids[] = { 182static const struct of_device_id mxs_pwm_dt_ids[] = {
183 { .compatible = "fsl,imx23-pwm", }, 183 { .compatible = "fsl,imx23-pwm", },
184 { /* sentinel */ } 184 { /* sentinel */ }
185}; 185};
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
index 9563599a117e..6d99e2cbdc73 100644
--- a/drivers/pwm/pwm-spear.c
+++ b/drivers/pwm/pwm-spear.c
@@ -248,7 +248,7 @@ static int spear_pwm_remove(struct platform_device *pdev)
248 return pwmchip_remove(&pc->chip); 248 return pwmchip_remove(&pc->chip);
249} 249}
250 250
251static struct of_device_id spear_pwm_of_match[] = { 251static const struct of_device_id spear_pwm_of_match[] = {
252 { .compatible = "st,spear320-pwm" }, 252 { .compatible = "st,spear320-pwm" },
253 { .compatible = "st,spear1340-pwm" }, 253 { .compatible = "st,spear1340-pwm" },
254 { } 254 { }
diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c
index af3ab48cb7ef..3d75f4a88f98 100644
--- a/drivers/pwm/pwm-tegra.c
+++ b/drivers/pwm/pwm-tegra.c
@@ -233,7 +233,7 @@ static int tegra_pwm_remove(struct platform_device *pdev)
233 return pwmchip_remove(&pc->chip); 233 return pwmchip_remove(&pc->chip);
234} 234}
235 235
236static struct of_device_id tegra_pwm_of_match[] = { 236static const struct of_device_id tegra_pwm_of_match[] = {
237 { .compatible = "nvidia,tegra20-pwm" }, 237 { .compatible = "nvidia,tegra20-pwm" },
238 { .compatible = "nvidia,tegra30-pwm" }, 238 { .compatible = "nvidia,tegra30-pwm" },
239 { } 239 { }
diff --git a/drivers/pwm/pwm-twl-led.c b/drivers/pwm/pwm-twl-led.c
index f912e87aed88..29d1bba4804e 100644
--- a/drivers/pwm/pwm-twl-led.c
+++ b/drivers/pwm/pwm-twl-led.c
@@ -323,7 +323,7 @@ static int twl_pwmled_remove(struct platform_device *pdev)
323} 323}
324 324
325#ifdef CONFIG_OF 325#ifdef CONFIG_OF
326static struct of_device_id twl_pwmled_of_match[] = { 326static const struct of_device_id twl_pwmled_of_match[] = {
327 { .compatible = "ti,twl4030-pwmled" }, 327 { .compatible = "ti,twl4030-pwmled" },
328 { .compatible = "ti,twl6030-pwmled" }, 328 { .compatible = "ti,twl6030-pwmled" },
329 { }, 329 { },
diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c
index 2782001ba183..eef910580eae 100644
--- a/drivers/pwm/pwm-twl.c
+++ b/drivers/pwm/pwm-twl.c
@@ -335,7 +335,7 @@ static int twl_pwm_remove(struct platform_device *pdev)
335} 335}
336 336
337#ifdef CONFIG_OF 337#ifdef CONFIG_OF
338static struct of_device_id twl_pwm_of_match[] = { 338static const struct of_device_id twl_pwm_of_match[] = {
339 { .compatible = "ti,twl4030-pwm" }, 339 { .compatible = "ti,twl4030-pwm" },
340 { .compatible = "ti,twl6030-pwm" }, 340 { .compatible = "ti,twl6030-pwm" },
341 { }, 341 { },