From patchwork Tue Jun 27 06:45:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 697558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFD56EB64DD for ; Tue, 27 Jun 2023 06:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229868AbjF0Grw (ORCPT ); Tue, 27 Jun 2023 02:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjF0GrG (ORCPT ); Tue, 27 Jun 2023 02:47:06 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 214442949 for ; Mon, 26 Jun 2023 23:45:30 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qE2S4-0006C7-Vt; Tue, 27 Jun 2023 08:45:25 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qE2S3-00ANmp-TW; Tue, 27 Jun 2023 08:45:23 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qE2S3-000AVy-Bi; Tue, 27 Jun 2023 08:45:23 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Wolfram Sang Cc: kernel@pengutronix.de, Javier Martinez Canillas , Jean Delvare , linux-i2c@vger.kernel.org Subject: [PATCH v2] i2c: Update documentation to use .probe() again Date: Tue, 27 Jun 2023 08:45:22 +0200 Message-Id: <20230627064522.593332-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1183; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=hYxfEqG8jwrStt6OKg0QCctr4JyYTxZCkST3tMKMm9A=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBkmoWB9YWNiMfxAOd6GQjROMiOqbjZ44omdsi5u qtTQFrQ6TGJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZJqFgQAKCRCPgPtYfRL+ Tl0ECACkYqb7rCmyFZBssJvvUjadtbRGUxJOhnRR16/ZoTpLonlFgWRrZxgE+1DLE3+OtX+O/dF ixAqo+drz6oI2uTf8wP6dwnBsDJLsqoUcFfaxYiOZwcGr/rU2adYyVgu+tHE+N0natOHLhGdMHV bzIJ+aE9cpiuUvotjikMh5goWG0wuwzq0C+S+Dfgc71e5/z4SWrIgPAY7+AFYLox7Dv01XiDExv T5vFeAwO9CXe+f8mk3YnvSfHE8XBkbYJ68aJPwa3wY0ZGRjzMN11KoYqFLEGgNT4B0XjU5SnbVj 0LvAwDtcIc6XcYArhxbB61T9ZDzDMOMOzLRkdhGlkEJv3teP X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-i2c@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org 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 --- 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(-) base-commit: 6995e2de6891c724bfeb2db33d7b87775f913ad1 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,