diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-12-14 15:17:23 -0500 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-12-14 15:17:23 -0500 |
commit | 310ec79210d754afe51e2e4a983e846b60179abd (patch) | |
tree | 98e592b60162cd55e367dc19ba3553617a45b0be /drivers/hwmon/lm77.c | |
parent | f40542532e96dda5506eb76badea322f2ae4731c (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/lm77.c')
-rw-r--r-- | drivers/hwmon/lm77.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/lm77.c b/drivers/hwmon/lm77.c index ac067fd19482..6373ab2cd952 100644 --- a/drivers/hwmon/lm77.c +++ b/drivers/hwmon/lm77.c | |||
@@ -66,8 +66,7 @@ struct lm77_data { | |||
66 | 66 | ||
67 | static int lm77_probe(struct i2c_client *client, | 67 | static int lm77_probe(struct i2c_client *client, |
68 | const struct i2c_device_id *id); | 68 | const struct i2c_device_id *id); |
69 | static int lm77_detect(struct i2c_client *client, int kind, | 69 | static int lm77_detect(struct i2c_client *client, struct i2c_board_info *info); |
70 | struct i2c_board_info *info); | ||
71 | static void lm77_init_client(struct i2c_client *client); | 70 | static void lm77_init_client(struct i2c_client *client); |
72 | static int lm77_remove(struct i2c_client *client); | 71 | static int lm77_remove(struct i2c_client *client); |
73 | static u16 lm77_read_value(struct i2c_client *client, u8 reg); | 72 | static u16 lm77_read_value(struct i2c_client *client, u8 reg); |
@@ -245,7 +244,7 @@ static const struct attribute_group lm77_group = { | |||
245 | }; | 244 | }; |
246 | 245 | ||
247 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 246 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
248 | static int lm77_detect(struct i2c_client *new_client, int kind, | 247 | static int lm77_detect(struct i2c_client *new_client, |
249 | struct i2c_board_info *info) | 248 | struct i2c_board_info *info) |
250 | { | 249 | { |
251 | struct i2c_adapter *adapter = new_client->adapter; | 250 | struct i2c_adapter *adapter = new_client->adapter; |