Skip to contentSkip to conversation

hwmon: (iio_hwmon) Make of_device_id array const

PATCH Applied Jingoo Han 2 participants 2 messages May 7, 2014 Hardware monitoring

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

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.

---
 drivers/hwmon/iio_hwmon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/iio_hwmon.c +1 -1
index 9fbb1b1..14c82da 100644
@@ -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