diff options
Diffstat (limited to 'drivers/hwmon/gl518sm.c')
-rw-r--r-- | drivers/hwmon/gl518sm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwmon/gl518sm.c b/drivers/hwmon/gl518sm.c index 1d69458aa0b6..34f83c6a3f45 100644 --- a/drivers/hwmon/gl518sm.c +++ b/drivers/hwmon/gl518sm.c | |||
@@ -139,8 +139,7 @@ struct gl518_data { | |||
139 | 139 | ||
140 | static int gl518_probe(struct i2c_client *client, | 140 | static int gl518_probe(struct i2c_client *client, |
141 | const struct i2c_device_id *id); | 141 | const struct i2c_device_id *id); |
142 | static int gl518_detect(struct i2c_client *client, int kind, | 142 | static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info); |
143 | struct i2c_board_info *info); | ||
144 | static void gl518_init_client(struct i2c_client *client); | 143 | static void gl518_init_client(struct i2c_client *client); |
145 | static int gl518_remove(struct i2c_client *client); | 144 | static int gl518_remove(struct i2c_client *client); |
146 | static int gl518_read_value(struct i2c_client *client, u8 reg); | 145 | static int gl518_read_value(struct i2c_client *client, u8 reg); |
@@ -484,8 +483,7 @@ static const struct attribute_group gl518_group_r80 = { | |||
484 | */ | 483 | */ |
485 | 484 | ||
486 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 485 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
487 | static int gl518_detect(struct i2c_client *client, int kind, | 486 | static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info) |
488 | struct i2c_board_info *info) | ||
489 | { | 487 | { |
490 | struct i2c_adapter *adapter = client->adapter; | 488 | struct i2c_adapter *adapter = client->adapter; |
491 | int rev; | 489 | int rev; |