aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/gl520sm.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-12-14 15:17:23 -0500
committerJean Delvare <khali@linux-fr.org>2009-12-14 15:17:23 -0500
commit310ec79210d754afe51e2e4a983e846b60179abd (patch)
tree98e592b60162cd55e367dc19ba3553617a45b0be /drivers/hwmon/gl520sm.c
parentf40542532e96dda5506eb76badea322f2ae4731c (diff)
i2c: Drop the kind parameter from detect callbacks
The "kind" parameter always has value -1, and nobody is using it any longer, so we can remove it. Signed-off-by: Jean Delvare <khali@linux-fr.org> Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/hwmon/gl520sm.c')
-rw-r--r--drivers/hwmon/gl520sm.c6
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
82static int gl520_probe(struct i2c_client *client, 82static int gl520_probe(struct i2c_client *client,
83 const struct i2c_device_id *id); 83 const struct i2c_device_id *id);
84static int gl520_detect(struct i2c_client *client, int kind, 84static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info);
85 struct i2c_board_info *info);
86static void gl520_init_client(struct i2c_client *client); 85static void gl520_init_client(struct i2c_client *client);
87static int gl520_remove(struct i2c_client *client); 86static int gl520_remove(struct i2c_client *client);
88static int gl520_read_value(struct i2c_client *client, u8 reg); 87static 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 */
684static int gl520_detect(struct i2c_client *client, int kind, 683static 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