Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1319095rwb; Fri, 18 Nov 2022 16:39:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xDu6+rCjsK5s5EsKNvLLvpU7tVS1k4zm1tkknScYnq2oYbg/ysWW7Tm+GB25itLheFj5W X-Received: by 2002:a17:907:a06f:b0:7ad:948f:11bb with SMTP id ia15-20020a170907a06f00b007ad948f11bbmr7865189ejc.354.1668818378802; Fri, 18 Nov 2022 16:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818378; cv=none; d=google.com; s=arc-20160816; b=RHGXfDKCFn5l9kQ2IAG9+w+Xk+ZlXPdmmL1vJmOHMR9h8edHeqbh8e2WndTFSHrRmg e0fr3GqCC5IylrCStX9QM/WyeIURx28yuM2DTD8G6XimVywX6O4oErpwvzNikwmPv9Kl 69a0WV4xX0rjUOJhryIoG/NEo6rmzK6KVPPsdG7vL3H4Zdt+6EH2qj2mv7QdGN/G8hQZ Xnw8AYns8AY0j75ez16LHzTEBgQLTj8WnTn1IV4Pgmmtjyn6NsJ8Y8vaLKH5r9It2ptT Vej7T5zxp2GE40zpybf32Wj32ws0Zrr+DZYCt3V/3tx4OMC3EZoKtpU+KwqhX0e5WDld Ed7Q== 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=dblu4o7rPyjLfgGV+WETN2+QdJcKX8yJxXl+rZqOqUk=; b=UuqoMZdUjwyvC4XMmG90+x+eGcbjgLRjetwVQ0tK5OCUqQeiGsptv8isdtQFaHv5NB 5F7qnIqLzHLCptCHdjz38z0IgUx7iBa0+jYGr1cBa0bG42XKoKtmk2Cv2ilT5gegBngO g4C5AYU0OcEVu493hJ6FJzYpIUdanL/XZ7m8ffQvec5eos/v3RGHcLcmeeWEG1+kZ7ZW BzRYgVLOXMvie8L+ri5vJ1Gbny/GCWK2VV+tOVmshB6qmU0og5U34lh0ZnChnU3BWbsq wj/fJtaRFdDt0z+YxqwAvkcbQJsOyT40oUuWrlcrYWRfpUbnJHG02BVNyP0BoVs6UHv8 13KQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a056402524400b00461cb980126si4618038edd.309.2022.11.18.16.39.17; Fri, 18 Nov 2022 16:39:38 -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 S237400AbiKSAEX (ORCPT + 90 others); Fri, 18 Nov 2022 19:04:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbiKSAC1 (ORCPT ); Fri, 18 Nov 2022 19:02:27 -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 D3241E5B24 for ; Fri, 18 Nov 2022 15:30:13 -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 1owA9d-00057N-4V; Fri, 18 Nov 2022 23:48:13 +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 1owA9a-0058py-EG; Fri, 18 Nov 2022 23:48:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9a-0000SZ-3H; Fri, 18 Nov 2022 23:48:10 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Liam Girdwood , Mark Brown Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH 550/606] regulator: max8952: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:44:44 +0100 Message-Id: <20221118224540.619276-551-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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/regulator/max8952.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index ccd5da63cdf2..360a33ecc093 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c @@ -171,8 +171,7 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev) } #endif -static int max8952_pmic_probe(struct i2c_client *client, - const struct i2c_device_id *i2c_id) +static int max8952_pmic_probe(struct i2c_client *client) { struct i2c_adapter *adapter = client->adapter; struct max8952_platform_data *pdata = dev_get_platdata(&client->dev); @@ -314,7 +313,7 @@ static const struct i2c_device_id max8952_ids[] = { MODULE_DEVICE_TABLE(i2c, max8952_ids); static struct i2c_driver max8952_pmic_driver = { - .probe = max8952_pmic_probe, + .probe_new = max8952_pmic_probe, .driver = { .name = "max8952", .of_match_table = of_match_ptr(max8952_dt_match), -- 2.38.1