Skip to content

Commit 7d71196

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
i2c: Update documentation to use .probe() again
Since commit 03c835f ("i2c: Switch .probe() to not take an id parameter") .probe() is the recommended callback to implement (again). Reflect this in the documentation and don't mention .probe_new() any more. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 0abbf0a commit 7d71196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/i2c/writing-clients.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ driver model device node, and its I2C address.
4646
},
4747

4848
.id_table = foo_idtable,
49-
.probe_new = foo_probe,
49+
.probe = foo_probe,
5050
.remove = foo_remove,
5151
/* if device autodetection is needed: */
5252
.class = I2C_CLASS_SOMETHING,

0 commit comments

Comments
 (0)