hwmon: (g762) Make of_device_id array const
PATCH 1/3 hwmon: (g762) Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/hwmon/g762.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/g762.c +1 -1
@@ -586,7 +586,7 @@ static int do_set_fan_startv(struct device *dev, unsigned long val)*/ #ifdef CONFIG_OF -static struct of_device_id g762_dt_match[] = { +static const struct of_device_id g762_dt_match[] = { { .compatible ="gmt,g762" }, { .compatible ="gmt,g763" }, { },
Signature · 8 lines
1.7.10.4 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors