summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/gpio-fan.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-07 10:27:54 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-05-22 01:02:23 +0200
commit6de709c5ee0d7e15afca5991af87e7462b65c527 (patch)
treeee3261626ab77b6aa920946e4a9478e83dd048b4 /drivers/hwmon/gpio-fan.c
parenthwmon: (g762) Make of_device_id array const (diff)
downloadlinux-6de709c5ee0d7e15afca5991af87e7462b65c527.tar.xz
linux-6de709c5ee0d7e15afca5991af87e7462b65c527.zip
hwmon: (gpio-fan) 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 <jg1.han@samsung.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/gpio-fan.c')
-rw-r--r--drivers/hwmon/gpio-fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c
index 73181be5b30b..ba35e4d530b5 100644
--- 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", },
{},
};