aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/gl518sm.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/gl518sm.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/gl518sm.c')
-rw-r--r--drivers/hwmon/gl518sm.c6
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
140static int gl518_probe(struct i2c_client *client, 140static int gl518_probe(struct i2c_client *client,
141 const struct i2c_device_id *id); 141 const struct i2c_device_id *id);
142static int gl518_detect(struct i2c_client *client, int kind, 142static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info);
143 struct i2c_board_info *info);
144static void gl518_init_client(struct i2c_client *client); 143static void gl518_init_client(struct i2c_client *client);
145static int gl518_remove(struct i2c_client *client); 144static int gl518_remove(struct i2c_client *client);
146static int gl518_read_value(struct i2c_client *client, u8 reg); 145static 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 */
487static int gl518_detect(struct i2c_client *client, int kind, 486static 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;