From patchwork Fri Nov 18 22:42:48 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: 23025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp478881wrr; Fri, 18 Nov 2022 16:15:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf68EYvIUqNFfbjCBEKeL5eJAKdQ9chFMRQDKzGkXb5J6+GK7uko7Iih8OYyuZOCuJlmTxr7 X-Received: by 2002:a17:906:6892:b0:78d:ab48:bc84 with SMTP id n18-20020a170906689200b0078dab48bc84mr8291489ejr.22.1668816930424; Fri, 18 Nov 2022 16:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816930; cv=none; d=google.com; s=arc-20160816; b=0VHg8azkn6yp4RltkKPXZ3n/l52aLeVommf0fHuR3GteTMJ+pWSmOb5/3bIgRVGcCB XJOwS3pu3fqi4S7DXJzYDj9odiMejAA10VXgyiRZQl4v+0iAgkczQ/NvlacZhavnrs4L 8WTgAoftXCnRAI6T+Pw3LsXz3ze79n0E1iucFna8WmuiyfLeMMZMW7DFGuHPwRn9CK6F ZOJEc+yPsBP9HhE2ViiGV9T4jc/YKbBUOdaZV10PHoiC5vwQ6OGcrTO2XoiFtL3ebal8 SRVMXMbRninQJ5TEfC59XKjDfcgPq0zeJMdx5/9iPsVK089sXdbaBLLhg0izrrNOJ9BD VLAg== 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=xjY+gcfPt2NvJut6uHC55RnvZYUu8x5lcB55Ah4DTzw=; b=q7BImSoLfLfNQtr0Rzjot/cdSvPYMTdv0rWTm7N04t2YPZeP0ORBPH2VyoMhrFTgUt PDdGZHoaVdtPa9YLrmCES+q5FCEd/vFQmyKahgDTYPBQOebTLIqjgCGwAyAu2dBXkgZ4 j7uxTQh9Il+uMpBk+L3pp6YYejq3qGTWCjGZjb/xrxENMu/IlXxzjwirM6PIGLon/IMp raFCbrCJzyn2FJklneDRw/uAzQBx8UvtqE46I8yyt5RQ1pTMnhgzuxcCPHkugoaNVpA+ /xHyJH3QiRr6acYdmPFsYbwHST6oU2qx0Krl44NgIveu2pNEpBRLHTdeY0T38cJPM+Pu mQ3A== 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 dn14-20020a17090794ce00b0077d854aa10dsi4509702ejc.57.2022.11.18.16.15.06; Fri, 18 Nov 2022 16:15:30 -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 S237511AbiKSAOY (ORCPT + 99 others); Fri, 18 Nov 2022 19:14:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237489AbiKSANq (ORCPT ); Fri, 18 Nov 2022 19:13:46 -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 5CAC3F45F6 for ; Fri, 18 Nov 2022 15:34:41 -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 1owA9F-00046C-Vo; Fri, 18 Nov 2022 23:47:50 +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 1owA9D-0058ga-Np; Fri, 18 Nov 2022 23:47:48 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9C-0000Ky-NO; Fri, 18 Nov 2022 23:47:46 +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 434/606] mfd: lp873x: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:48 +0100 Message-Id: <20221118224540.619276-435-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?1749881381512157848?= X-GMAIL-MSGID: =?utf-8?q?1749881381512157848?= 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/lp873x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/lp873x.c b/drivers/mfd/lp873x.c index b6166dec492d..c81c5c9ad748 100644 --- a/drivers/mfd/lp873x.c +++ b/drivers/mfd/lp873x.c @@ -24,8 +24,7 @@ static const struct mfd_cell lp873x_cells[] = { { .name = "lp873x-gpio", }, }; -static int lp873x_probe(struct i2c_client *client, - const struct i2c_device_id *ids) +static int lp873x_probe(struct i2c_client *client) { struct lp873x *lp873; int ret; @@ -79,7 +78,7 @@ static struct i2c_driver lp873x_driver = { .name = "lp873x", .of_match_table = of_lp873x_match_table, }, - .probe = lp873x_probe, + .probe_new = lp873x_probe, .id_table = lp873x_id_table, }; module_i2c_driver(lp873x_driver);