aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max1619.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/max1619.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/max1619.c')
-rw-r--r--drivers/hwmon/max1619.c4
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
89static int max1619_probe(struct i2c_client *client, 89static int max1619_probe(struct i2c_client *client,
90 const struct i2c_device_id *id); 90 const struct i2c_device_id *id);
91static int max1619_detect(struct i2c_client *client, int kind, 91static int max1619_detect(struct i2c_client *client,
92 struct i2c_board_info *info); 92 struct i2c_board_info *info);
93static void max1619_init_client(struct i2c_client *client); 93static void max1619_init_client(struct i2c_client *client);
94static int max1619_remove(struct i2c_client *client); 94static 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 */
229static int max1619_detect(struct i2c_client *client, int kind, 229static 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;