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/i2c | |
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/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 4f34823e86b1..c1047d644d8f 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -1184,7 +1184,7 @@ static int i2c_detect_address(struct i2c_client *temp_client, | |||
1184 | /* Finally call the custom detection function */ | 1184 | /* Finally call the custom detection function */ |
1185 | memset(&info, 0, sizeof(struct i2c_board_info)); | 1185 | memset(&info, 0, sizeof(struct i2c_board_info)); |
1186 | info.addr = addr; | 1186 | info.addr = addr; |
1187 | err = driver->detect(temp_client, -1, &info); | 1187 | err = driver->detect(temp_client, &info); |
1188 | if (err) { | 1188 | if (err) { |
1189 | /* -ENODEV is returned if the detection fails. We catch it | 1189 | /* -ENODEV is returned if the detection fails. We catch it |
1190 | here as this isn't an error. */ | 1190 | here as this isn't an error. */ |