Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce7b39a1 authored by Márton Németh's avatar Márton Németh Committed by Dmitry Torokhov
Browse files

Input: make i2c device ids constant



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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 8cab9ba1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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, },
	{ }
};
+1 −1
Original line number Diff line number Diff line
@@ -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 },
	{ }
};
+1 −1
Original line number Diff line number Diff line
@@ -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 },
	{ }
};