From: Uwe Kleine-König Date: Tue, 27 Jun 2023 06:45:22 +0000 (+0200) Subject: i2c: Update documentation to use .probe() again X-Git-Tag: v6.6.7~2167^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d711966f94c189f38d9e2df05152a2336352ab8;p=platform%2Fkernel%2Flinux-starfive.git i2c: Update documentation to use .probe() again 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 Reviewed-by: Jean Delvare Reviewed-by: Javier Martinez Canillas Reviewed-by: Andi Shyti Signed-off-by: Wolfram Sang --- diff --git a/Documentation/i2c/writing-clients.rst b/Documentation/i2c/writing-clients.rst index b7d3ae7..41ddc10 100644 --- a/Documentation/i2c/writing-clients.rst +++ b/Documentation/i2c/writing-clients.rst @@ -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,