hwmon: (iio_hwmon) Make of_device_id array const
PATCH 3/3 hwmon: (iio_hwmon) 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/iio_hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/iio_hwmon.c +1 -1
@@ -163,7 +163,7 @@ static int iio_hwmon_remove(struct platform_device *pdev)return 0 ; } -static struct of_device_id iio_hwmon_of_match[] = { +static const struct of_device_id iio_hwmon_of_match[] = { { .compatible ="iio-hwmon" , }, { } };
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