projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adaa50b
)
hwmon: (gpio-fan) Make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 7 May 2014 08:27:54 +0000
(17:27 +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/gpio-fan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/gpio-fan.c
b/drivers/hwmon/gpio-fan.c
index 73181be5b30b806a875f497097f120795db5309c..ba35e4d530b57c4e30ff898f4394e8d548cd6572 100644
(file)
--- a/
drivers/hwmon/gpio-fan.c
+++ b/
drivers/hwmon/gpio-fan.c
@@
-482,7
+482,7
@@
static int gpio_fan_get_of_pdata(struct device *dev,
return 0;
}
-static struct of_device_id of_gpio_fan_match[] = {
+static
const
struct of_device_id of_gpio_fan_match[] = {
{ .compatible = "gpio-fan", },
{},
};