From patchwork Fri Nov 18 22:43:01 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: 22648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp460549wrr; Fri, 18 Nov 2022 15:24:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Rn0ffvH0Hd2LvLAOqPZcv92uY1efhljoIBJ2K2Du2S+mRDFqJctbHgrm2G0iFysZH4snW X-Received: by 2002:a17:902:c3d1:b0:186:886f:e1e0 with SMTP id j17-20020a170902c3d100b00186886fe1e0mr1521221plj.162.1668813876692; Fri, 18 Nov 2022 15:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668813876; cv=none; d=google.com; s=arc-20160816; b=HSxAPSbAKxtcHFkXQgFFdCHoECVYBrgGEJNy/8/kLksbwzR+4LZVsXPsiYfHvn/Wpd fprB4NglN2ukoF+C273O0uFuS61k8uChc+geogvO0pJb7AwDqiOhJo527IHrC8WXZgNY vknm0PF4b9dHbGw6blzCLrfv5qBt4kfOyiFWLgfr+HFDKIJxLEeWu80fPyQnWgS47Kof kQQU7BpDxNVMZPvB0DjoeN3cJp08wcQ0qz6p0gktDX2TWyMnJn/+l1/AGbQd7Pk0I7VQ RyWTRmPSDmsikzZuU19fe/9lS3bQA28QPgTKiwUkN98BqzBb5XQ7JeI49IW6/PqiWlvm 613g== 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=WtmX964IUUu+QQkWZe+kn8xOkLKqvytXW9T3aFjU8BM=; b=l+ok1BpOgYkODphLgpgXxmiZD7c91uOzt53HoZbukRAUkXdGeasXcbsEozi1a62kWV HnRsM/JF9tuLg1cohO7TwU+IYBBu62EhAChAD/b/P7Fz7zrEk+mi5o8d+YcOI6lgNlV7 LgT3EftUWFyk+7ghN1ieZGPVPAHkawc5/dGb9hny+jMHg5BbtGSxaz7i9fZ5aQrAIl3v r1p7Fn1Cl1DKH5l6Pzx19RJoUP/W46jwk6uVkvkl9mWVJmyJbfBo81mIuvNMcKakAdlU sF//Ygf0X8uW6/TiXmhaKexv5TxNsxDR+MhygEpunCA6W80/h+JHyKKfQuvU3hpfSYT8 sGjQ== 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 q25-20020a635059000000b00439f012ca7asi4848634pgl.743.2022.11.18.15.24.22; Fri, 18 Nov 2022 15:24:36 -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 S235410AbiKRXXW (ORCPT + 99 others); Fri, 18 Nov 2022 18:23:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiKRXVO (ORCPT ); Fri, 18 Nov 2022 18:21:14 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E96D352175 for ; Fri, 18 Nov 2022 15:12:34 -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-0004BS-9P; 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 1owA9F-0058hR-Hn; Fri, 18 Nov 2022 23:47:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9F-0000Ln-C6; 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 447/606] mfd: menelaus: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:01 +0100 Message-Id: <20221118224540.619276-448-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?1749878179135113816?= X-GMAIL-MSGID: =?utf-8?q?1749878179135113816?= 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/menelaus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c index eb08f69001f9..c2866a11c1d2 100644 --- a/drivers/mfd/menelaus.c +++ b/drivers/mfd/menelaus.c @@ -1142,8 +1142,7 @@ static inline void menelaus_rtc_init(struct menelaus_chip *m) static struct i2c_driver menelaus_i2c_driver; -static int menelaus_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int menelaus_probe(struct i2c_client *client) { struct menelaus_chip *menelaus; int rev = 0; @@ -1241,7 +1240,7 @@ static struct i2c_driver menelaus_i2c_driver = { .driver = { .name = DRIVER_NAME, }, - .probe = menelaus_probe, + .probe_new = menelaus_probe, .remove = menelaus_remove, .id_table = menelaus_id, };