]> Git Repo - linux.git/commitdiff
i2c: Update documentation to use .probe() again
authorUwe Kleine-König <[email protected]>
Tue, 27 Jun 2023 06:45:22 +0000 (08:45 +0200)
committerWolfram Sang <[email protected]>
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 <[email protected]>
Reviewed-by: Jean Delvare <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Documentation/i2c/writing-clients.rst

index b7d3ae7458f8686ac8dd194eb44b76fe4af65b73..41ddc10f1ac7b5dd860a829a4723b25b47ae5c4d 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,
This page took 0.057476 seconds and 4 git commands to generate.