projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b89d7
)
hwmon: (g762) Make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 7 May 2014 08:25:14 +0000
(17:25 +0900)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 21 May 2014 23:02:22 +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/g762.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/g762.c
b/drivers/hwmon/g762.c
index b4b8b5bef718a596a027d3e57703491eedba980c..98a8618d8fbf47451db9394ea1efa8f56f5e986c 100644
(file)
--- a/
drivers/hwmon/g762.c
+++ b/
drivers/hwmon/g762.c
@@
-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" },
{ },