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/max1619.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/max1619.c')
-rw-r--r-- | drivers/hwmon/max1619.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/max1619.c b/drivers/hwmon/max1619.c index 7fcf5ff89e7f..4baf94efd372 100644 --- a/drivers/hwmon/max1619.c +++ b/drivers/hwmon/max1619.c | |||
@@ -88,7 +88,7 @@ static int temp_to_reg(int val) | |||
88 | 88 | ||
89 | static int max1619_probe(struct i2c_client *client, | 89 | static int max1619_probe(struct i2c_client *client, |
90 | const struct i2c_device_id *id); | 90 | const struct i2c_device_id *id); |
91 | static int max1619_detect(struct i2c_client *client, int kind, | 91 | static int max1619_detect(struct i2c_client *client, |
92 | struct i2c_board_info *info); | 92 | struct i2c_board_info *info); |
93 | static void max1619_init_client(struct i2c_client *client); | 93 | static void max1619_init_client(struct i2c_client *client); |
94 | static int max1619_remove(struct i2c_client *client); | 94 | static int max1619_remove(struct i2c_client *client); |
@@ -226,7 +226,7 @@ static const struct attribute_group max1619_group = { | |||
226 | */ | 226 | */ |
227 | 227 | ||
228 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 228 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
229 | static int max1619_detect(struct i2c_client *client, int kind, | 229 | static int max1619_detect(struct i2c_client *client, |
230 | struct i2c_board_info *info) | 230 | struct i2c_board_info *info) |
231 | { | 231 | { |
232 | struct i2c_adapter *adapter = client->adapter; | 232 | struct i2c_adapter *adapter = client->adapter; |