devfreq: constify of_device_id array
Subsystems (2)
MyungJoo Ham
Acked-byQuoted 4 lines
of_device_idis always used as const.
(See driver.of_match_table and open firmware functions)Signed-off-by Fabian Frederick <[email protected]>
Acked-by MyungJoo Ham <[email protected]>
Quoted 35 lines
--- drivers/devfreq/event/exynos-ppmu.c | 2 +- drivers/devfreq/tegra-devfreq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/devfreq/event/exynos-ppmu.c +1
-1@@ -354,7 +354,7 @@ static int exynos_ppmu_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id exynos_ppmu_id_match[] = { +static const struct of_device_id exynos_ppmu_id_match[] = { { .compatible ="samsung,exynos-ppmu" , }, {/* sentinel */ }, };drivers/devfreq/tegra-devfreq.c +1
-1@@ -695,7 +695,7 @@ static SIMPLE_DEV_PM_OPS(tegra_devfreq_pm_ops, tegra_devfreq_suspend, tegra_devfreq_resume); -static struct of_device_id tegra_devfreq_of_match[] = { +static const struct of_device_id tegra_devfreq_of_match[] = { { .compatible ="nvidia,tegra124-actmon" }, { }, };Signature · 1 line
2.1.0