From patchwork Fri Nov 18 22:43:17 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: 22642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460419wrr; Fri, 18 Nov 2022 15:24:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yMAJV/zRrnuLMJ1JuH7kGyTvtKkebmQs7u2i8h8iWhAuv38SjNW89BWFGJx9qsX7rNQD3 X-Received: by 2002:a17:906:3b48:b0:78d:b65a:aabe with SMTP id h8-20020a1709063b4800b0078db65aaabemr7929108ejf.5.1668813851877; Fri, 18 Nov 2022 15:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813851; cv=none; d=google.com; s=arc-20160816; b=hrEqPeiHa95kf9/5AGuV+OL8l6k0EyHDwdGFudsJOD54uFgxfECm3lIXit4GGn1JB9 NWcmSfzaiU6tupi6H+r2R00THGkCjJbgp/a6PpFqs5nZlTFA81G3yzrmXYzXhwiLR9uF ATrMzbKZ2bBbTSsdR+lgXezdtwAcPKn14RWghT/LI46LVOsiHB6wEAe17f8qg5p3oCnG 11DEBGq1baMiP4Dzjve+UajhYF1sFlmduWqGG0FHXQ+OPAj8B4PgQxWYD+N2pO2HPFq7 nvFUWvmVs54+/CbeS0JiSh19/+kJznBuGluI4okAv8C0KIfRUsxMvmDLG5tZO0tc7xO4 RvUw== 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=WRrHCXeH8gDLe/nNxMfqB1WL+cb1dMoGjnxq8FB53hU=; b=kDw5Y0/99Zj8RNKWt/c27rf4c6YCsphg/CtSAWKkgsYzHRiSMafAnGEz4J2pk+qAy4 1sTrXVIVXIt1VBmBz+2lkyLmpvCxgKFWtXbEGG5e0HtrbqnuBfGq5jU91BHqdVofXEkH ShTiaD/SmokS48SJW9znqhY+5JKWPXMZj3IA7TtCAaw1BgIh67hB+TJOj7sEZZXIDd84 PRz4Ba92RPjZJcYVbui2V0vb18UW0wGq/NS87kUT7igbOAfjQkYQru1V2hxT2afAbaQX 0t/oj8ZOhJm3dBJENQv0N3Giq43m19bLBni+cRV8BzrTU2t2yYOP6YUbtTXiexgc3xWZ IXog== 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 dm5-20020a170907948500b0078db3762061si4590459ejc.439.2022.11.18.15.23.45; Fri, 18 Nov 2022 15:24:11 -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 S231376AbiKRXWt (ORCPT + 99 others); Fri, 18 Nov 2022 18:22:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235221AbiKRXVI (ORCPT ); Fri, 18 Nov 2022 18:21:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAA325214E for ; Fri, 18 Nov 2022 15:12:15 -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 1owA9K-0004JT-Pt; Fri, 18 Nov 2022 23:47:54 +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 1owA9I-0058io-9B; Fri, 18 Nov 2022 23:47:53 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9I-0000Mt-Gf; Fri, 18 Nov 2022 23:47:52 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH 463/606] mfd: stw481x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:17 +0100 Message-Id: <20221118224540.619276-464-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=ham 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?1749878153756786319?= X-GMAIL-MSGID: =?utf-8?q?1749878153756786319?= 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/mfd/stw481x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/stw481x.c b/drivers/mfd/stw481x.c index 7478f03ccbae..2a8fc9d1c806 100644 --- a/drivers/mfd/stw481x.c +++ b/drivers/mfd/stw481x.c @@ -173,8 +173,7 @@ static const struct regmap_config stw481x_regmap_config = { .val_bits = 8, }; -static int stw481x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int stw481x_probe(struct i2c_client *client) { struct stw481x *stw481x; int ret; @@ -240,7 +239,7 @@ static struct i2c_driver stw481x_driver = { .name = "stw481x", .of_match_table = stw481x_match, }, - .probe = stw481x_probe, + .probe_new = stw481x_probe, .id_table = stw481x_id, };