Skip to content

Commit

Permalink
i2c: Update documentation to use .probe() again
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Wolfram Sang committed Aug 14, 2023
1 parent 0abbf0a commit 7d71196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/i2c/writing-clients.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ driver model device node, and its I2C address.
},

.id_table = foo_idtable,
.probe_new = foo_probe,
.probe = foo_probe,
.remove = foo_remove,
/* if device autodetection is needed: */
.class = I2C_CLASS_SOMETHING,
Expand Down

0 comments on commit 7d71196

Please sign in to comment.