Skip to content

Commit

Permalink
pwm: Constify OF match tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding committed Apr 23, 2013
1 parent bdd7cf9 commit f1a8870
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-lpc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ }
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ }
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{ }
Expand Down
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{ }
Expand Down
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-twl-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{ },
Expand Down
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-twl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
{ },
Expand Down

0 comments on commit f1a8870

Please sign in to comment.