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>
此提交包含在:
@@ -145,7 +145,6 @@
|
||||
static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };
|
||||
|
||||
/* Insmod parameters */
|
||||
I2C_CLIENT_INSMOD_1(lm93);
|
||||
|
||||
static int disable_block;
|
||||
module_param(disable_block, bool, 0);
|
||||
@@ -2602,7 +2601,7 @@ static int lm93_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lm93_id[] = {
|
||||
{ "lm93", lm93 },
|
||||
{ "lm93", 0 },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, lm93_id);
|
||||
|
新增問題並參考
封鎖使用者