aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83792d.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/w83792d.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/w83792d.c')
-rw-r--r--drivers/hwmon/w83792d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c
index 38978851333f..03b836cdafa6 100644
--- a/drivers/hwmon/w83792d.c
+++ b/drivers/hwmon/w83792d.c
@@ -302,7 +302,7 @@ struct w83792d_data {
302 302
303static int w83792d_probe(struct i2c_client *client, 303static int w83792d_probe(struct i2c_client *client,
304 const struct i2c_device_id *id); 304 const struct i2c_device_id *id);
305static int w83792d_detect(struct i2c_client *client, int kind, 305static int w83792d_detect(struct i2c_client *client,
306 struct i2c_board_info *info); 306 struct i2c_board_info *info);
307static int w83792d_remove(struct i2c_client *client); 307static int w83792d_remove(struct i2c_client *client);
308static struct w83792d_data *w83792d_update_device(struct device *dev); 308static struct w83792d_data *w83792d_update_device(struct device *dev);
@@ -1263,7 +1263,7 @@ static const struct attribute_group w83792d_group = {
1263 1263
1264/* Return 0 if detection is successful, -ENODEV otherwise */ 1264/* Return 0 if detection is successful, -ENODEV otherwise */
1265static int 1265static int
1266w83792d_detect(struct i2c_client *client, int kind, struct i2c_board_info *info) 1266w83792d_detect(struct i2c_client *client, struct i2c_board_info *info)
1267{ 1267{
1268 struct i2c_adapter *adapter = client->adapter; 1268 struct i2c_adapter *adapter = client->adapter;
1269 int val1, val2; 1269 int val1, val2;