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

hwmon: (pwm-fan, vexpress) 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: Guenter Roeck <linux@roeck-us.net>

authored by

Fabian Frederick and committed by
Guenter Roeck
d720acac 25cdd99d

+2 -2
+1 -1
drivers/hwmon/pwm-fan.c
··· 322 322 323 323 static SIMPLE_DEV_PM_OPS(pwm_fan_pm, pwm_fan_suspend, pwm_fan_resume); 324 324 325 - static struct of_device_id of_pwm_fan_match[] = { 325 + static const struct of_device_id of_pwm_fan_match[] = { 326 326 { .compatible = "pwm-fan", }, 327 327 {}, 328 328 };
+1 -1
drivers/hwmon/vexpress.c
··· 193 193 }, 194 194 }; 195 195 196 - static struct of_device_id vexpress_hwmon_of_match[] = { 196 + static const struct of_device_id vexpress_hwmon_of_match[] = { 197 197 #if !defined(CONFIG_REGULATOR_VEXPRESS) 198 198 { 199 199 .compatible = "arm,vexpress-volt",