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:
@@ -56,9 +56,10 @@
|
||||
/* Addresses to scan */
|
||||
static const unsigned short normal_i2c[] = { 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d,
|
||||
0x2e, 0x2f, I2C_CLIENT_END };
|
||||
/* Insmod parameters */
|
||||
I2C_CLIENT_INSMOD_4(w83781d, w83782d, w83783s, as99127f);
|
||||
|
||||
enum chips { w83781d, w83782d, w83783s, as99127f };
|
||||
|
||||
/* Insmod parameters */
|
||||
static unsigned short force_subclients[4];
|
||||
module_param_array(force_subclients, short, NULL, 0);
|
||||
MODULE_PARM_DESC(force_subclients, "List of subclient addresses: "
|
||||
|
Referens i nytt ärende
Block a user