From nobody Tue Sep 9 23:17:21 2025 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 2661EC64ED6 for ; Sun, 26 Feb 2023 22:27:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229751AbjBZW1d (ORCPT ); Sun, 26 Feb 2023 17:27:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjBZW1V (ORCPT ); Sun, 26 Feb 2023 17:27:21 -0500 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 D55301969F for ; Sun, 26 Feb 2023 14:27:18 -0800 (PST) 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 1pWPTz-0000vN-Su; Sun, 26 Feb 2023 23:27:03 +0100 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 1pWPTx-000Ubv-CF; Sun, 26 Feb 2023 23:27:01 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pWPTw-000YQ3-Bw; Sun, 26 Feb 2023 23:27:00 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Michael Hennerich , Peter Rosin , Guenter Roeck , linux-kernel@vger.kernel.org Subject: [PATCH v2 8/9] i2c: mux: Convert all drivers to new .probe() callback Date: Sun, 26 Feb 2023 23:26:53 +0100 Message-Id: <20230226222654.1741900-9-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230226222654.1741900-1-u.kleine-koenig@pengutronix.de> References: <20230226222654.1741900-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1995; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=jcUywLQFp8WtlmqcLVBYp45E4YG+FnwWrSDjDBieEic=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBj+9ymaExC7GrV4YWI4fas9uJsKebM3ytL19/1y zQlRoHlIQGJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY/vcpgAKCRDB/BR4rcrs CbldB/0XJH0RfzmRbquiKKMm85T/XUj3VUvyKhEN4y4/ZHTekqEdaVIixBD0Y5wU5NCS57abnbx 0Sh1xi2uf0o0sMsGKcLao+qJF5YjHon8MzWUlPX7b4XXD4mTZg9MAtolZ0mkfFoOmjah7KKFhP3 QRo6j/31m9kFkDtpZGIjdrhboOE5bi2nojkTemEMTLhUa4Ps6q25l4Pf6aR53AxOSS7S4l/ul2p hmqbz60tN9y6P4HDIAHcKxMoCW6NX+y3pZTN4qojo1bR3evVPQIC/vTTRW98Sq6BsmcFM8aDYeb FRhQoXGjwwbG1gGB4XOIk0XiE6EJX2zLIs7IsqZkh9belYuX X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable 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-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that .probe() was changed not to get the id parameter, drivers can be converted back to that with the eventual goal to drop .probe_new(). Implement that for the i2c mux drivers. Acked-by: Guenter Roeck Acked-by: Peter Rosin Signed-off-by: Uwe Kleine-K=C3=B6nig --- drivers/i2c/muxes/i2c-mux-ltc4306.c | 2 +- drivers/i2c/muxes/i2c-mux-pca9541.c | 2 +- drivers/i2c/muxes/i2c-mux-pca954x.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-ltc4306.c b/drivers/i2c/muxes/i2c-mu= x-ltc4306.c index 70835825083f..5a03031519be 100644 --- a/drivers/i2c/muxes/i2c-mux-ltc4306.c +++ b/drivers/i2c/muxes/i2c-mux-ltc4306.c @@ -306,7 +306,7 @@ static struct i2c_driver ltc4306_driver =3D { .name =3D "ltc4306", .of_match_table =3D of_match_ptr(ltc4306_of_match), }, - .probe_new =3D ltc4306_probe, + .probe =3D ltc4306_probe, .remove =3D ltc4306_remove, .id_table =3D ltc4306_id, }; diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mu= x-pca9541.c index 09d1d9e67e31..ce0fb69249a8 100644 --- a/drivers/i2c/muxes/i2c-mux-pca9541.c +++ b/drivers/i2c/muxes/i2c-mux-pca9541.c @@ -336,7 +336,7 @@ static struct i2c_driver pca9541_driver =3D { .name =3D "pca9541", .of_match_table =3D of_match_ptr(pca9541_of_match), }, - .probe_new =3D pca9541_probe, + .probe =3D pca9541_probe, .remove =3D pca9541_remove, .id_table =3D pca9541_id, }; diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mu= x-pca954x.c index 3639e6d7304c..0ccee2ae5720 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -554,7 +554,7 @@ static struct i2c_driver pca954x_driver =3D { .pm =3D &pca954x_pm, .of_match_table =3D pca954x_of_match, }, - .probe_new =3D pca954x_probe, + .probe =3D pca954x_probe, .remove =3D pca954x_remove, .id_table =3D pca954x_id, }; --=20 2.39.1