projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de709c
)
hwmon: (iio_hwmon) Make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 7 May 2014 08:29:02 +0000
(17:29 +0900)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 21 May 2014 23:02:23 +0000
(16:02 -0700)
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/iio_hwmon.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/iio_hwmon.c
b/drivers/hwmon/iio_hwmon.c
index 9fbb1b1fdff30e3de44086364d99833f612b9302..14c82daab01975851da8e1255cf7b3430df5383c 100644
(file)
--- a/
drivers/hwmon/iio_hwmon.c
+++ b/
drivers/hwmon/iio_hwmon.c
@@
-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", },
{ }
};