aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm90.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/lm90.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/lm90.c')
-rw-r--r--drivers/hwmon/lm90.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index b7c905f50ed4..3acbacadac77 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -152,8 +152,7 @@ I2C_CLIENT_INSMOD_8(lm90, adm1032, lm99, lm86, max6657, adt7461, max6680,
152 * Functions declaration 152 * Functions declaration
153 */ 153 */
154 154
155static int lm90_detect(struct i2c_client *client, int kind, 155static int lm90_detect(struct i2c_client *client, struct i2c_board_info *info);
156 struct i2c_board_info *info);
157static int lm90_probe(struct i2c_client *client, 156static int lm90_probe(struct i2c_client *client,
158 const struct i2c_device_id *id); 157 const struct i2c_device_id *id);
159static void lm90_init_client(struct i2c_client *client); 158static void lm90_init_client(struct i2c_client *client);
@@ -656,7 +655,7 @@ static int lm90_read_reg(struct i2c_client* client, u8 reg, u8 *value)
656} 655}
657 656
658/* Return 0 if detection is successful, -ENODEV otherwise */ 657/* Return 0 if detection is successful, -ENODEV otherwise */
659static int lm90_detect(struct i2c_client *new_client, int kind, 658static int lm90_detect(struct i2c_client *new_client,
660 struct i2c_board_info *info) 659 struct i2c_board_info *info)
661{ 660{
662 struct i2c_adapter *adapter = new_client->adapter; 661 struct i2c_adapter *adapter = new_client->adapter;