From patchwork Fri Nov 18 22:42:56 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: 22862 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp472063wrr; Fri, 18 Nov 2022 15:59:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf47GCG9b+ubnsEyZL6ng6Rtq2Z9FIB2bg6slSdpfxgmSpq5Z3G4gr+povYB6vrcKUTS3jw7 X-Received: by 2002:a17:90a:fc84:b0:217:ff37:2fe9 with SMTP id ci4-20020a17090afc8400b00217ff372fe9mr16084894pjb.242.1668815954354; Fri, 18 Nov 2022 15:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668815954; cv=none; d=google.com; s=arc-20160816; b=hrJ3ALyyKPcDceZ37JBzjvMJzLvlGfxV4MHmBmbo3+Lbu5i26UWqOTDu/JqU6Dr5X4 zJTCoYIk/xcvdQuKAvK37phG5s9N8WggEBgBa9z1O4QIP1vhnOxba8UpU9mQhS/Hm8Oi njOR3rgcF1vUMQRiFyOV/+PwG8TZsHO4RlAbEmAzyt24jjTLBLXUOj4T9L3OhCtUVTOe 1rNaDLOBANpWbE6VbSKjn1AnCG8t3W14094dpM88MhwDOyTeeakoY7ZBJPY+bGfMpl38 3mRpB3Y1xIBUNHzdgfXSxBx7j8vwleHy7ujIXPNWff1N9zp1J1eoEueZJ1n1rFE4vBrf tsHQ== 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=X67Odj4ZfHMjpQTytgi5px2vhmBr60da38cuJZot2eU=; b=sZ7q43icatCnMnU95RCdviSumQ8w2XJ5dcMaG1DFm/udWW9zHLOKU27ARlhp4nqrBD ZzftqtYTYoJfHzYSVsP+RTDnYDHY9MWeyDlmo7jdhqutOmCsvj3SDETG9kW/ER8iZrtQ YCv2AlSMmPUE4awnIzEn7gG2mbSBFyvxHNK6WV8mIYZfIfTIqvK553Z7wgRtpHZo07P+ rj07uFEXgds0OYrzJTG/bLBxWx52MFP2G7R1ngUYJeLMofeBtBCjRFvh5NoYV34mVXHZ xLO6F5YXdvSrSABSYZ3nNdU1tcCgVdL8VhqCQKqGwp2+9yBkCoKVN6bV1KJGXdRmr+c8 KHEg== 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 k7-20020aa788c7000000b0056c064d3fb1si5315008pff.152.2022.11.18.15.59.02; Fri, 18 Nov 2022 15:59:14 -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 S235192AbiKRXwc (ORCPT + 99 others); Fri, 18 Nov 2022 18:52:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233092AbiKRXvX (ORCPT ); Fri, 18 Nov 2022 18:51:23 -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 10C1EB855A for ; Fri, 18 Nov 2022 15:26:58 -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 1owA9I-0004Dj-D8; Fri, 18 Nov 2022 23:47:52 +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 1owA9G-0058hj-5t; Fri, 18 Nov 2022 23:47:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9E-0000LR-B8; Fri, 18 Nov 2022 23:47:48 +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 442/606] mfd: max8907: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:56 +0100 Message-Id: <20221118224540.619276-443-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?1749880358056892963?= X-GMAIL-MSGID: =?utf-8?q?1749880358056892963?= 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/max8907.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c index c340080971ce..a69b865c6eac 100644 --- a/drivers/mfd/max8907.c +++ b/drivers/mfd/max8907.c @@ -181,8 +181,7 @@ static void max8907_power_off(void) MAX8907_MASK_POWER_OFF, MAX8907_MASK_POWER_OFF); } -static int max8907_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max8907_i2c_probe(struct i2c_client *i2c) { struct max8907 *max8907; int ret; @@ -314,7 +313,7 @@ static struct i2c_driver max8907_i2c_driver = { .name = "max8907", .of_match_table = of_match_ptr(max8907_of_match), }, - .probe = max8907_i2c_probe, + .probe_new = max8907_i2c_probe, .remove = max8907_i2c_remove, .id_table = max8907_i2c_id, };