Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Constify of_device_id array

of_device_id is always used as const.

(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Fabian Frederick and committed by
Lee Jones
908725d5 48579a9a

+3 -3
+1 -1
drivers/mfd/hi6421-pmic-core.c
··· 93 93 return 0; 94 94 } 95 95 96 - static struct of_device_id of_hi6421_pmic_match_tbl[] = { 96 + static const struct of_device_id of_hi6421_pmic_match_tbl[] = { 97 97 { .compatible = "hisilicon,hi6421-pmic", }, 98 98 { }, 99 99 };
+1 -1
drivers/mfd/rk808.c
··· 246 246 return 0; 247 247 } 248 248 249 - static struct of_device_id rk808_of_match[] = { 249 + static const struct of_device_id rk808_of_match[] = { 250 250 { .compatible = "rockchip,rk808" }, 251 251 { }, 252 252 };
+1 -1
drivers/mfd/twl4030-power.c
··· 829 829 .board_config = osc_off_rconfig, 830 830 }; 831 831 832 - static struct of_device_id twl4030_power_of_match[] = { 832 + static const struct of_device_id twl4030_power_of_match[] = { 833 833 { 834 834 .compatible = "ti,twl4030-power", 835 835 },