i2c: Update documentation to use .probe() again
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 27 Jun 2023 06:45:22 +0000 (08:45 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 14 Aug 2023 16:14:04 +0000 (18:14 +0200)
Since commit 03c835f498b5 ("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>
Documentation/i2c/writing-clients.rst

index b7d3ae7..41ddc10 100644 (file)
@@ -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,