Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1a8870a authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <thierry.reding@avionic-design.de>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Acked-by: default avatarAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent bdd7cf97
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -145,7 +145,7 @@ static int lpc32xx_pwm_remove(struct platform_device *pdev)
	return pwmchip_remove(&lpc32xx->chip);
	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", },
	{ .compatible = "nxp,lpc3220-pwm", },
	{ /* sentinel */ }
	{ /* sentinel */ }
};
};
+1 −1
Original line number Original line Diff line number Diff line
@@ -179,7 +179,7 @@ static int mxs_pwm_remove(struct platform_device *pdev)
	return pwmchip_remove(&mxs->chip);
	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", },
	{ .compatible = "fsl,imx23-pwm", },
	{ /* sentinel */ }
	{ /* sentinel */ }
};
};
+1 −1
Original line number Original line Diff line number Diff line
@@ -248,7 +248,7 @@ static int spear_pwm_remove(struct platform_device *pdev)
	return pwmchip_remove(&pc->chip);
	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,spear320-pwm" },
	{ .compatible = "st,spear1340-pwm" },
	{ .compatible = "st,spear1340-pwm" },
	{ }
	{ }
+1 −1
Original line number Original line Diff line number Diff line
@@ -233,7 +233,7 @@ static int tegra_pwm_remove(struct platform_device *pdev)
	return pwmchip_remove(&pc->chip);
	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,tegra20-pwm" },
	{ .compatible = "nvidia,tegra30-pwm" },
	{ .compatible = "nvidia,tegra30-pwm" },
	{ }
	{ }
+1 −1
Original line number Original line Diff line number Diff line
@@ -323,7 +323,7 @@ static int twl_pwmled_remove(struct platform_device *pdev)
}
}


#ifdef CONFIG_OF
#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,twl4030-pwmled" },
	{ .compatible = "ti,twl6030-pwmled" },
	{ .compatible = "ti,twl6030-pwmled" },
	{ },
	{ },
Loading