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/lm87.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/lm87.c')
-rw-r--r-- | drivers/hwmon/lm87.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c index 4929b1815eee..d545b8596b05 100644 --- a/drivers/hwmon/lm87.c +++ b/drivers/hwmon/lm87.c | |||
@@ -158,7 +158,7 @@ static u8 LM87_REG_TEMP_LOW[3] = { 0x3A, 0x38, 0x2C }; | |||
158 | 158 | ||
159 | static int lm87_probe(struct i2c_client *client, | 159 | static int lm87_probe(struct i2c_client *client, |
160 | const struct i2c_device_id *id); | 160 | const struct i2c_device_id *id); |
161 | static int lm87_detect(struct i2c_client *new_client, int kind, | 161 | static int lm87_detect(struct i2c_client *new_client, |
162 | struct i2c_board_info *info); | 162 | struct i2c_board_info *info); |
163 | static void lm87_init_client(struct i2c_client *client); | 163 | static void lm87_init_client(struct i2c_client *client); |
164 | static int lm87_remove(struct i2c_client *client); | 164 | static int lm87_remove(struct i2c_client *client); |
@@ -662,7 +662,7 @@ static const struct attribute_group lm87_group_opt = { | |||
662 | }; | 662 | }; |
663 | 663 | ||
664 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 664 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
665 | static int lm87_detect(struct i2c_client *new_client, int kind, | 665 | static int lm87_detect(struct i2c_client *new_client, |
666 | struct i2c_board_info *info) | 666 | struct i2c_board_info *info) |
667 | { | 667 | { |
668 | struct i2c_adapter *adapter = new_client->adapter; | 668 | struct i2c_adapter *adapter = new_client->adapter; |