public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] i2c: Update documentation to use .probe() again
@ 2023-06-27  6:45 Uwe Kleine-König
  2023-06-27 11:44 ` Jean Delvare
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2023-06-27  6:45 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: kernel, Javier Martinez Canillas, Jean Delvare, linux-i2c

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>
---
Hello,

changes since (implicit) v1 sent a moment ago:

 - Fix whitespace. My editor seems to be configured to expand tabs to
   spaces in rst files, but that's inconsitent with the tab style used
   in that file.

Best regards
Uwe

 Documentation/i2c/writing-clients.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/i2c/writing-clients.rst b/Documentation/i2c/writing-clients.rst
index b7d3ae7458f8..41ddc10f1ac7 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,

base-commit: 6995e2de6891c724bfeb2db33d7b87775f913ad1
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-14 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-27  6:45 [PATCH v2] i2c: Update documentation to use .probe() again Uwe Kleine-König
2023-06-27 11:44 ` Jean Delvare
2023-06-27 12:16 ` Javier Martinez Canillas
2023-08-05 16:54 ` Andi Shyti
2023-08-14 16:15 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox