From patchwork Fri Nov 18 22:43:03 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: 22690 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp462459wrr; Fri, 18 Nov 2022 15:30:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7JJ9as9fCriysmvzDy8lgD/IDDOGkFIJVvfcDYcy5oqF/ZTKq+8qZcDRMQmsvLVNRf1AYp X-Received: by 2002:a17:906:814f:b0:7b2:86d6:292d with SMTP id z15-20020a170906814f00b007b286d6292dmr7679434ejw.714.1668814210946; Fri, 18 Nov 2022 15:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668814210; cv=none; d=google.com; s=arc-20160816; b=wJdkneXFXRuhu2xJO5cAU4Xdy4HfOZTxxLmIeGCOE0uX5ssOYdqI0jwq2s4MiENwJH Mue613e9yyg/Z9MTjEkAPxAeKk+Ufes9L1TstW1+aEOAfeeEKvy/whpvEr6Hx0CIZWxs DNa9qgAo4l9X0+D9jbXKjD1m6aCSMnQC4J4IJMlm8TSdjQjFU49UEUZ6oCgyEopRx0QF tJ9E0OKij6QNSgaZrxRN3szMTQg/LoNraR3s2dIuHasSRnynGF61h0xUJcvJA6Cbm3EH PycpO8dzRWySBrLwCTQ84T2laW8X3AlFxRTmX/+43Z2tiRmirdwiW0K1iFoUi6A+f2KM D5gA== 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=T/fBTDrhxbjjjpahjGS5JS9AGzv0ssz/HvjJnL+xxIA=; b=SV5Q22t2pU0tRRjV1fSl79AM5wFzxYZmG3Tal9AtSp3wmjwoMRRJgfgqhyTmiueA5L IIX1LnNVzQ13/1D4exduE1bTRP8AWxHM8Y9zdGOhtaD+jdPqfHEhayP1Q/pBopNAgq2X qS9FaIzbu5HGvJMu97vhoWkk6rNvVs02xQJ+QPvKg+8BegDCizaNRY4arDLX2ep+BUP/ 6vwaQ1qzeH0qqyXVOVzWu1g6RgbTiH82lqhboRNBFpfZWdOA4tA/8Ab9NTO+8rAA5AMZ BEkh4i7j3ePGAriVLQUBFOiotPe2KeRT3/7g41DbdoN6WnaRSjEmKfGgL1wmqJCB1ARt HsLw== 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 xh13-20020a170906da8d00b0078e29796733si3843523ejb.653.2022.11.18.15.29.45; Fri, 18 Nov 2022 15:30:10 -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 S235825AbiKRX3V (ORCPT + 99 others); Fri, 18 Nov 2022 18:29:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235776AbiKRX2g (ORCPT ); Fri, 18 Nov 2022 18:28:36 -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 BEC1C7460F for ; Fri, 18 Nov 2022 15:16:28 -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 1owA9J-0004HR-TP; Fri, 18 Nov 2022 23:47:53 +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 1owA9H-0058iL-GI; Fri, 18 Nov 2022 23:47:52 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Lv-Nm; Fri, 18 Nov 2022 23:47:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Tony Lindgren , Lee Jones Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 449/606] mfd: palmas: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:03 +0100 Message-Id: <20221118224540.619276-450-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?1749878529870223978?= X-GMAIL-MSGID: =?utf-8?q?1749878529870223978?= 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/palmas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c index 8b7429bd2e3e..d26d82c85ba8 100644 --- a/drivers/mfd/palmas.c +++ b/drivers/mfd/palmas.c @@ -502,8 +502,7 @@ static const struct of_device_id of_palmas_match_tbl[] = { }; MODULE_DEVICE_TABLE(of, of_palmas_match_tbl); -static int palmas_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int palmas_i2c_probe(struct i2c_client *i2c) { struct palmas *palmas; struct palmas_platform_data *pdata; @@ -732,7 +731,7 @@ static struct i2c_driver palmas_i2c_driver = { .name = "palmas", .of_match_table = of_palmas_match_tbl, }, - .probe = palmas_i2c_probe, + .probe_new = palmas_i2c_probe, .remove = palmas_i2c_remove, .id_table = palmas_i2c_id, };