i2c: Drop I2C_CLIENT_INSMOD_2 to 8
These macros simply declare an enum, so drivers might as well declare it themselves. This puts an end to the arbitrary limit of 8 chip types per i2c driver. Signed-off-by: Jean Delvare <khali@linux-fr.org> Tested-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
@ -148,7 +148,7 @@
|
||||
|
||||
static unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };
|
||||
|
||||
I2C_CLIENT_INSMOD_4(adt7473, adt7475, adt7476, adt7490);
|
||||
enum chips { adt7473, adt7475, adt7476, adt7490 };
|
||||
|
||||
static const struct i2c_device_id adt7475_id[] = {
|
||||
{ "adt7473", adt7473 },
|
||||
|
Reference in New Issue
Block a user