From: Jingoo Han Date: Wed, 7 May 2014 08:27:54 +0000 (+0900) Subject: hwmon: (gpio-fan) Make of_device_id array const X-Git-Tag: v3.16-rc1~30^2~32^2~35 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6de709c5ee0d7e15afca5991af87e7462b65c527;p=linux-block.git 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 Signed-off-by: Guenter Roeck --- 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", }, {}, };