Input: gpio_keys_polled - make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 19:58:36 +0000 (12:58 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:39:54 +0000 (16:39 -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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys_polled.c

index e571e194ff84e8521c19d64f4b52d4f29d704846..bea53a633c52e2479e9dd06a3cfb20c3bd9758fd 100644 (file)
@@ -191,7 +191,7 @@ err_out:
        return ERR_PTR(error);
 }
 
-static struct of_device_id gpio_keys_polled_of_match[] = {
+static const struct of_device_id gpio_keys_polled_of_match[] = {
        { .compatible = "gpio-keys-polled", },
        { },
 };