i2c: Drop I2C_CLIENT_INSMOD_1
This macro simply declares an enum, so drivers might as well declare it themselves. Signed-off-by: Jean Delvare <khali@linux-fr.org> Tested-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
@@ -54,9 +54,6 @@
|
||||
static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
|
||||
I2C_CLIENT_END };
|
||||
|
||||
/* Insmod parameters */
|
||||
I2C_CLIENT_INSMOD_1(lm92);
|
||||
|
||||
/* The LM92 registers */
|
||||
#define LM92_REG_CONFIG 0x01 /* 8-bit, RW */
|
||||
#define LM92_REG_TEMP 0x00 /* 16-bit, RO */
|
||||
@@ -401,7 +398,7 @@ static int lm92_remove(struct i2c_client *client)
|
||||
*/
|
||||
|
||||
static const struct i2c_device_id lm92_id[] = {
|
||||
{ "lm92", lm92 },
|
||||
{ "lm92", 0 },
|
||||
/* max6635 could be added here */
|
||||
{ }
|
||||
};
|
||||
|
Reference in New Issue
Block a user