Input: zforce - make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 20:10:16 +0000 (13:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:01 +0000 (16:40 -0700)
Make of_device_id array const, because all OF functions handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zforce_ts.c

index 01d30cedde460f7f54f49ac72ad744b080fcfcb6..feea85b52fa89c88ee8a213b0eb4ccf8954a2373 100644 (file)
@@ -880,7 +880,7 @@ static struct i2c_device_id zforce_idtable[] = {
 MODULE_DEVICE_TABLE(i2c, zforce_idtable);
 
 #ifdef CONFIG_OF
-static struct of_device_id zforce_dt_idtable[] = {
+static const struct of_device_id zforce_dt_idtable[] = {
        { .compatible = "neonode,zforce" },
        {},
 };