diff options
Diffstat (limited to 'drivers/hwmon/lm80.c')
-rw-r--r-- | drivers/hwmon/lm80.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/hwmon/lm80.c b/drivers/hwmon/lm80.c index bcffc1899403..18a0e6c5fe88 100644 --- a/drivers/hwmon/lm80.c +++ b/drivers/hwmon/lm80.c | |||
@@ -35,9 +35,6 @@ | |||
35 | static const unsigned short normal_i2c[] = { 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, | 35 | static const unsigned short normal_i2c[] = { 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, |
36 | 0x2e, 0x2f, I2C_CLIENT_END }; | 36 | 0x2e, 0x2f, I2C_CLIENT_END }; |
37 | 37 | ||
38 | /* Insmod parameters */ | ||
39 | I2C_CLIENT_INSMOD_1(lm80); | ||
40 | |||
41 | /* Many LM80 constants specified below */ | 38 | /* Many LM80 constants specified below */ |
42 | 39 | ||
43 | /* The LM80 registers */ | 40 | /* The LM80 registers */ |
@@ -133,8 +130,7 @@ struct lm80_data { | |||
133 | 130 | ||
134 | static int lm80_probe(struct i2c_client *client, | 131 | static int lm80_probe(struct i2c_client *client, |
135 | const struct i2c_device_id *id); | 132 | const struct i2c_device_id *id); |
136 | static int lm80_detect(struct i2c_client *client, int kind, | 133 | static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info); |
137 | struct i2c_board_info *info); | ||
138 | static void lm80_init_client(struct i2c_client *client); | 134 | static void lm80_init_client(struct i2c_client *client); |
139 | static int lm80_remove(struct i2c_client *client); | 135 | static int lm80_remove(struct i2c_client *client); |
140 | static struct lm80_data *lm80_update_device(struct device *dev); | 136 | static struct lm80_data *lm80_update_device(struct device *dev); |
@@ -146,7 +142,7 @@ static int lm80_write_value(struct i2c_client *client, u8 reg, u8 value); | |||
146 | */ | 142 | */ |
147 | 143 | ||
148 | static const struct i2c_device_id lm80_id[] = { | 144 | static const struct i2c_device_id lm80_id[] = { |
149 | { "lm80", lm80 }, | 145 | { "lm80", 0 }, |
150 | { } | 146 | { } |
151 | }; | 147 | }; |
152 | MODULE_DEVICE_TABLE(i2c, lm80_id); | 148 | MODULE_DEVICE_TABLE(i2c, lm80_id); |
@@ -160,7 +156,7 @@ static struct i2c_driver lm80_driver = { | |||
160 | .remove = lm80_remove, | 156 | .remove = lm80_remove, |
161 | .id_table = lm80_id, | 157 | .id_table = lm80_id, |
162 | .detect = lm80_detect, | 158 | .detect = lm80_detect, |
163 | .address_data = &addr_data, | 159 | .address_list = normal_i2c, |
164 | }; | 160 | }; |
165 | 161 | ||
166 | /* | 162 | /* |
@@ -447,8 +443,7 @@ static const struct attribute_group lm80_group = { | |||
447 | }; | 443 | }; |
448 | 444 | ||
449 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 445 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
450 | static int lm80_detect(struct i2c_client *client, int kind, | 446 | static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info) |
451 | struct i2c_board_info *info) | ||
452 | { | 447 | { |
453 | struct i2c_adapter *adapter = client->adapter; | 448 | struct i2c_adapter *adapter = client->adapter; |
454 | int i, cur; | 449 | int i, cur; |