mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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: Márton Németh <nm127@freemail.hu> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
committed by
Dmitry Torokhov
parent
8cab9ba104
commit
ce7b39a181
@@ -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 },
|
||||
{ }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user