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/tmp401.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/tmp401.c')
-rw-r--r-- | drivers/hwmon/tmp401.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index ee9673467c4a..7cf1d541a5fa 100644 --- a/drivers/hwmon/tmp401.c +++ b/drivers/hwmon/tmp401.c | |||
@@ -98,7 +98,7 @@ static const u8 TMP411_TEMP_HIGHEST_LSB[2] = { 0x33, 0x37 }; | |||
98 | 98 | ||
99 | static int tmp401_probe(struct i2c_client *client, | 99 | static int tmp401_probe(struct i2c_client *client, |
100 | const struct i2c_device_id *id); | 100 | const struct i2c_device_id *id); |
101 | static int tmp401_detect(struct i2c_client *client, int kind, | 101 | static int tmp401_detect(struct i2c_client *client, |
102 | struct i2c_board_info *info); | 102 | struct i2c_board_info *info); |
103 | static int tmp401_remove(struct i2c_client *client); | 103 | static int tmp401_remove(struct i2c_client *client); |
104 | static struct tmp401_data *tmp401_update_device(struct device *dev); | 104 | static struct tmp401_data *tmp401_update_device(struct device *dev); |
@@ -488,7 +488,7 @@ static void tmp401_init_client(struct i2c_client *client) | |||
488 | i2c_smbus_write_byte_data(client, TMP401_CONFIG_WRITE, config); | 488 | i2c_smbus_write_byte_data(client, TMP401_CONFIG_WRITE, config); |
489 | } | 489 | } |
490 | 490 | ||
491 | static int tmp401_detect(struct i2c_client *client, int _kind, | 491 | static int tmp401_detect(struct i2c_client *client, |
492 | struct i2c_board_info *info) | 492 | struct i2c_board_info *info) |
493 | { | 493 | { |
494 | enum chips kind; | 494 | enum chips kind; |