From patchwork Fri Nov 18 22:43:52 2022 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: 22790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp466629wrr; Fri, 18 Nov 2022 15:40:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4eCb931Z4TtOufMVyWk4niijSnBqseuA8iXjVKtF56S+NwKIGl7/hMQZj/BfruO1PGPlO/ X-Received: by 2002:a17:906:32c7:b0:7ad:934f:abc2 with SMTP id k7-20020a17090632c700b007ad934fabc2mr7273181ejk.690.1668814833565; Fri, 18 Nov 2022 15:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814833; cv=none; d=google.com; s=arc-20160816; b=js+myKbdJqXbTRznah9ZOBVSqpESt6Hk00qBbWzDpqPzliv9exb+w/wmjzCc/e2CkI tEBEQ6bib/5kYMHLAvXhiBpSX8tvOhpXx1TgqPYGaGtAjjJJY4E4JUQx2Y8Rzf6zyO0N QUFMzxj63bP21GLxytLemm7dnQExfoFr0e6aOtufO93/P7JPPaAm92lIlmijeELrQ8BP hy4fHLqThiIs7uT4wZw87XIg1/VHpEENbiiWYw1ADKjBSTq0U1+Q9dpTgb+dvbKC7ySa /TBfwEWGfue/jWQs/G71CeFGTzMxsAJ4VKz7YDjNyJgnowunnIUP/sGDnvq9F5ff0Raq 84LA== 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=KlUitwJrhCBCd2kOCkIMm/8v04PqG5arxpW2eMJkSrA=; b=YirLg1cjXUBvvw4jo94+KFQGn1nqJEr75on2hlhRQGuRjRnqyJY0C9LvociAoaQD7d VAxWpOkJTIZUT0HdRJJvwWsWu2Z2Seg9ocPDde4qBciJdHWVZ09BzW9Lgiowz4iY7pe5 Fbdr96pSR27/L7rNvAnFn6c8x+mMo59JRq+8P6umlsloqveeA66hkdYvb9beWK/iX073 yQfuETXkrpuk+teragM+st5AmnCRR6aq73584vzuVyqvcss6qkMA3LU2aGe8Hp0owhXB wWKCblReHQLTaC7njgXyHY/Pv8fOuqrUZSJ8umE1VFqPy95EGvF6jilNQ8hIpt33lD4n Da8w== 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 qo14-20020a170907874e00b007ae931d56f9si3577823ejc.89.2022.11.18.15.40.10; Fri, 18 Nov 2022 15:40:33 -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 S236511AbiKRXjF (ORCPT + 99 others); Fri, 18 Nov 2022 18:39:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236032AbiKRXde (ORCPT ); Fri, 18 Nov 2022 18:33:34 -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 A5655AD9A1 for ; Fri, 18 Nov 2022 15:21:37 -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 1owA9S-0004cg-4L; Fri, 18 Nov 2022 23:48:02 +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 1owA9P-0058lj-8x; Fri, 18 Nov 2022 23:48:00 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9P-0000PA-CF; Fri, 18 Nov 2022 23:47:59 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 498/606] net: dsa: microchip: ksz9477: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:52 +0100 Message-Id: <20221118224540.619276-499-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118224540.619276-1-uwe@kleine-koenig.org> References: <20221118224540.619276-1-uwe@kleine-koenig.org> MIME-Version: 1.0 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.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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?1749879182570669317?= X-GMAIL-MSGID: =?utf-8?q?1749879182570669317?= From: Uwe Kleine-König The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König --- drivers/net/dsa/microchip/ksz9477_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c index db4aec0a51dc..c1a633ca1e6d 100644 --- a/drivers/net/dsa/microchip/ksz9477_i2c.c +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c @@ -14,8 +14,7 @@ KSZ_REGMAP_TABLE(ksz9477, not_used, 16, 0, 0); -static int ksz9477_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *i2c_id) +static int ksz9477_i2c_probe(struct i2c_client *i2c) { struct regmap_config rc; struct ksz_device *dev; @@ -120,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = { .name = "ksz9477-switch", .of_match_table = of_match_ptr(ksz9477_dt_ids), }, - .probe = ksz9477_i2c_probe, + .probe_new = ksz9477_i2c_probe, .remove = ksz9477_i2c_remove, .shutdown = ksz9477_i2c_shutdown, .id_table = ksz9477_i2c_id,