gpio: palmas: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 09:06:50 +0000 (18:06 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 09:01:24 +0000 (11:01 +0200)
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: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-palmas.c

index a5ec602..86bdbe3 100644 (file)
@@ -148,7 +148,7 @@ static const struct palmas_device_data tps80036_dev_data = {
        .ngpio = 16,
 };
 
-static struct of_device_id of_palmas_gpio_match[] = {
+static const struct of_device_id of_palmas_gpio_match[] = {
        { .compatible = "ti,palmas-gpio", .data = &palmas_dev_data,},
        { .compatible = "ti,tps65913-gpio", .data = &palmas_dev_data,},
        { .compatible = "ti,tps65914-gpio", .data = &palmas_dev_data,},