aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 38dd4025aa4e..59a9f3cdc0b5 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -284,12 +284,15 @@ i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info);
284 284
285/* If you don't know the exact address of an I2C device, use this variant 285/* If you don't know the exact address of an I2C device, use this variant
286 * instead, which can probe for device presence in a list of possible 286 * instead, which can probe for device presence in a list of possible
287 * addresses. 287 * addresses. The "probe" callback function is optional. If it is provided,
288 * it must return 1 on successful probe, 0 otherwise. If it is not provided,
289 * a default probing method is used.
288 */ 290 */
289extern struct i2c_client * 291extern struct i2c_client *
290i2c_new_probed_device(struct i2c_adapter *adap, 292i2c_new_probed_device(struct i2c_adapter *adap,
291 struct i2c_board_info *info, 293 struct i2c_board_info *info,
292 unsigned short const *addr_list); 294 unsigned short const *addr_list,
295 int (*probe)(struct i2c_adapter *, unsigned short addr));
293 296
294/* For devices that use several addresses, use i2c_new_dummy() to make 297/* For devices that use several addresses, use i2c_new_dummy() to make
295 * client handles for the extra addresses. 298 * client handles for the extra addresses.