diff options
Diffstat (limited to 'drivers/hwmon/gl520sm.c')
-rw-r--r-- | drivers/hwmon/gl520sm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwmon/gl520sm.c b/drivers/hwmon/gl520sm.c index 92b5720ceaff..d03ba692fc42 100644 --- a/drivers/hwmon/gl520sm.c +++ b/drivers/hwmon/gl520sm.c | |||
@@ -81,8 +81,7 @@ static const u8 GL520_REG_TEMP_MAX_HYST[] = { 0x06, 0x18 }; | |||
81 | 81 | ||
82 | static int gl520_probe(struct i2c_client *client, | 82 | static int gl520_probe(struct i2c_client *client, |
83 | const struct i2c_device_id *id); | 83 | const struct i2c_device_id *id); |
84 | static int gl520_detect(struct i2c_client *client, int kind, | 84 | static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info); |
85 | struct i2c_board_info *info); | ||
86 | static void gl520_init_client(struct i2c_client *client); | 85 | static void gl520_init_client(struct i2c_client *client); |
87 | static int gl520_remove(struct i2c_client *client); | 86 | static int gl520_remove(struct i2c_client *client); |
88 | static int gl520_read_value(struct i2c_client *client, u8 reg); | 87 | static int gl520_read_value(struct i2c_client *client, u8 reg); |
@@ -681,8 +680,7 @@ static const struct attribute_group gl520_group_opt = { | |||
681 | */ | 680 | */ |
682 | 681 | ||
683 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 682 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
684 | static int gl520_detect(struct i2c_client *client, int kind, | 683 | static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info) |
685 | struct i2c_board_info *info) | ||
686 | { | 684 | { |
687 | struct i2c_adapter *adapter = client->adapter; | 685 | struct i2c_adapter *adapter = client->adapter; |
688 | 686 | ||