From patchwork Fri Feb 24 12:05:59 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: 61290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp868918wrd; Fri, 24 Feb 2023 04:11:23 -0800 (PST) X-Google-Smtp-Source: AK7set9HTW/Z64C8E2wRm1PFCI1VkHIgB1428YtVeY+x7OmvxeBaIfbQgWc8B2GWrh7ItGiirN89 X-Received: by 2002:a05:6a20:a020:b0:cb:db9d:f78d with SMTP id p32-20020a056a20a02000b000cbdb9df78dmr9444933pzj.47.1677240682959; Fri, 24 Feb 2023 04:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677240682; cv=none; d=google.com; s=arc-20160816; b=QcrH3VHJrmfMK9lWNJwC0eT4u5zF7FWBoQ5xIMo0psHTiWzRhhKpGPDP85AVFwXXIw qNjzyC3cwkw2wP5kD8NY/4DOalrBGhyfolphonJ7TVSV2hl2b2hgH45zzA+eM72B9dIS FM0Z8cqkyGVo3VsVaWxSs2zAcJ2AYWITBw5+rikRax1MvWElIbv8bVpfD0LUayIbhJhO lbO6J/rsT0CEmovclnZODw6ay40WXyN7fu+0YFjXSYYA3B/PrV4Qo58jwo8ZuSF+fLdv +YeROKeJlnsdhgcwSfzs1yef6yiFGuLM5dOU5BAg2PsCsB7CnlyRzYEd3VZTSUFWxwYD YhpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pYH4L0aOcHk0Bw8B+LSnu+Ek8vb8ZUgl1xHMy0Cc2Xc=; b=0KVZX0jpJE2KBf5wqcnUZDz/eRjt3N1XtfS9jsmnAGx1GVzNjq7EjUsR3lZs62FR2w o3G/kNxCVmalyQywy3C/dXyJ4ZsQ8uNb/6xsgbxzUVUTAyPMdYtduoFBNYYSB3Tj2OpC paXq0yZV7RTIKQH7WKv5Mtpby1GSylb1Wx1OyRW4sdr77sFmb51HQNTNMRUHdlVV08/M MEuF0CmmW6VqaDMD6VHlnly7/jE4N+JJNb7U/N45fu4Nyzqm4WfF6iEv4F/sk3LZeo3Q tYYiO19vFKjD84zhuEMMEgwaJSaMv/yZeE3RBRJCktXB2f5kpO1dip9v2GAhMIvM2glS he0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a6383c8000000b00502f49a9b86si4901572pge.635.2023.02.24.04.11.05; Fri, 24 Feb 2023 04:11:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbjBXMGf (ORCPT + 99 others); Fri, 24 Feb 2023 07:06:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229951AbjBXMG1 (ORCPT ); Fri, 24 Feb 2023 07:06:27 -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 7B6376533E for ; Fri, 24 Feb 2023 04:06:21 -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 1pVWq5-0000cr-Po; Fri, 24 Feb 2023 13:06:13 +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 1pVWq2-007Azy-Ff; Fri, 24 Feb 2023 13:06:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pVWq3-006EZ9-0k; Fri, 24 Feb 2023 13:06:11 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Wolfram Sang Cc: kernel@pengutronix.de, Michael Hennerich , Peter Rosin , Guenter Roeck , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/9] i2c: mux: Convert all drivers to new .probe() callback Date: Fri, 24 Feb 2023 13:05:59 +0100 Message-Id: <20230224120600.1681685-9-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230224120600.1681685-1-u.kleine-koenig@pengutronix.de> References: <20230224120600.1681685-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1908; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=HxKNKaD00JoFVk6SwuLkqQlTsGt6ppNbQZJbFgHADZM=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBj+Kge0A/yvIYizp+VRjhKF1BWVxexmJ3/e8od7 5Fk7GMtqJCJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY/ioHgAKCRDB/BR4rcrs CccACACWHBowhYVb19QXDMNU1/SaBt3C/AeioycgWCTrWlkkJ5ZXruliVYX+6b/jwmGg4QZUXxE pssD7dRtb3mudFvdne6kCBnYo8bFmch7MEnaFCsoK6Kr3AdUqX65lUKja9vPsHoISfgRdsBy4sG hl4dm22sq8TClpBlLGoNVqajAwWG3XAenNX4a55IhPoJhLXTO82SN0Bn1OKSfE1P0gemYuvhtq6 pK4j75pA1NBd0saoNKJ8rjJCzw01+EvU4Anl1ZiFdTHqt9IeGTdnSZqhFnkrGTJhSQL+QwKl3Ds RSsdldPGxh/8Aq4Kg38r2TEE2+CgypfEqMiEukk1PdFwfPOq 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-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758714326381670892?= X-GMAIL-MSGID: =?utf-8?q?1758714326381670892?= 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. Signed-off-by: Uwe Kleine-König Acked-by: Guenter Roeck Acked-by: Peter Rosin --- 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-mux-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 = { .name = "ltc4306", .of_match_table = of_match_ptr(ltc4306_of_match), }, - .probe_new = ltc4306_probe, + .probe = ltc4306_probe, .remove = ltc4306_remove, .id_table = ltc4306_id, }; diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-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 = { .name = "pca9541", .of_match_table = of_match_ptr(pca9541_of_match), }, - .probe_new = pca9541_probe, + .probe = pca9541_probe, .remove = pca9541_remove, .id_table = pca9541_id, }; diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-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 = { .pm = &pca954x_pm, .of_match_table = pca954x_of_match, }, - .probe_new = pca954x_probe, + .probe = pca954x_probe, .remove = pca954x_remove, .id_table = pca954x_id, };