Input: make i2c device ids constant
authorMárton Németh <nm127@freemail.hu>
Sun, 10 Jan 2010 07:23:02 +0000 (23:23 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 10 Jan 2010 07:28:33 +0000 (23:28 -0800)
The id_table field of the struct i2c_driver is defined as constant
in <linux/i2c.h> so it makes sense to mark the initialization data also
constant.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/qt2160.c
drivers/input/misc/apanel.c
drivers/input/touchscreen/tsc2007.c

index 191cc51d6cf8c5609689f6990d847f3820a77b3f..31f30087b591866c9e81af4401d0a3feeaae359e 100644 (file)
@@ -362,7 +362,7 @@ static int __devexit qt2160_remove(struct i2c_client *client)
        return 0;
 }
 
-static struct i2c_device_id qt2160_idtable[] = {
+static const struct i2c_device_id qt2160_idtable[] = {
        { "qt2160", 0, },
        { }
 };
index 71b82434264d1c3efde2a1f0f0bc187b3ead3b5e..a8d2b8db4e359fbe521cce279909527cea4d984e 100644 (file)
@@ -149,7 +149,7 @@ static void apanel_shutdown(struct i2c_client *client)
        apanel_remove(client);
 }
 
-static struct i2c_device_id apanel_id[] = {
+static const struct i2c_device_id apanel_id[] = {
        { "fujitsu_apanel", 0 },
        { }
 };
index 7ef0d1420d3c917f48d4dd41013d4d4a6f7665f5..be23780e8a3e3b81be9df7b7cd0f8aab86d87e61 100644 (file)
@@ -358,7 +358,7 @@ static int __devexit tsc2007_remove(struct i2c_client *client)
        return 0;
 }
 
-static struct i2c_device_id tsc2007_idtable[] = {
+static const struct i2c_device_id tsc2007_idtable[] = {
        { "tsc2007", 0 },
        { }
 };