From patchwork Fri Nov 18 22:44:44 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: 22969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476438wrr; Fri, 18 Nov 2022 16:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6A+y/Nxn4QHxP073kGCWgLwBP9NeeKtLzYS734+FLTqUADlx7nQuqonnKSz/6jVi+zIRv6 X-Received: by 2002:a17:906:2dcb:b0:7b2:8a70:8fb7 with SMTP id h11-20020a1709062dcb00b007b28a708fb7mr7935841eji.163.1668816543969; Fri, 18 Nov 2022 16:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816543; cv=none; d=google.com; s=arc-20160816; b=PtUczHMumTw+nhjLkR+bGzYF6vjPRwA2FeaOUO0NnVGVpsX6UxBRfruvZRDUjkDZ1F kKzj8drpHJ/2iLk3q64gYjlb9jO+u5xCDltPtldKB/Zc/m6lJl2bsFUYVVCQyzG3m8kJ F1NuOWlxiilY4LsyuhrhUCjOlcGZrNFJLlxkbT8KtRhq8wtVN3Y+VFSUO46kQ5idu9MQ RsnGZGbN+bQiSb3NlUMJBoLdnw8E6EXaf+Nw/OEqC5EG0qw9hkS+tdRPgRqknfaQ83RJ NY3ZiD0X6FWC5f5TqGBZ8AK5uc3eS+7jDWQxp5ASdlb1+5Xh5RtFMCqu0K1HAfGmw6z4 VcWQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qc23-20020a170906d8b700b0078df948151esi3591206ejb.946.2022.11.18.16.08.36; Fri, 18 Nov 2022 16:09:03 -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 + 99 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_Kleine-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_Kleine-K?= =?utf-8?q?=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 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?1749880976471109550?= X-GMAIL-MSGID: =?utf-8?q?1749880976471109550?= 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),