From patchwork Mon Nov 21 10:24:54 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: 23653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1501171wrr; Mon, 21 Nov 2022 02:35:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WQ++TsOqxXtiwEG75aILExIFoD6+2DgwgB1h1NDkuPYrcNDYFLC0U0XqniBLt4bI0GXMz X-Received: by 2002:a17:902:9343:b0:188:b7d6:46bf with SMTP id g3-20020a170902934300b00188b7d646bfmr2831278plp.111.1669026951237; Mon, 21 Nov 2022 02:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669026951; cv=none; d=google.com; s=arc-20160816; b=akc1YvadbNCDA7KuFi+jF645h3mq1dSPnNO9lCatzQ5z00M/io23NXJqLXpDHEzTeG 1Pp/4bGK82BRfvP+7ueBUO3M8UQHv0q9o3HV1L58Qb1J7Zi0oAqQKm1FuG1V+5ZAKayq xXD+pqtiiKuHD85N+ZElYejJIHM7CYYD7oaCavERgu9HJbsfvI+hFTPMzTHonyE/eLmc M8RRVxlQ/UAqonvTfgn4n8lvawcn1onpFjqsOfjcRDw0hyZ+d1fNwmG03gOX/cYTvDfu j3bCb9oPepx3TLGxlb9aiOe6/93cDEeXAmEp8aGaBj8UNYJkTXMczdgP/d0GPtvx8ykX Q87A== 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 :message-id:date:subject:cc:to:from; bh=Sb7b0fNPvSvAusyu/xD1/mMS9TTwGPjZbcA4ucF0E0Y=; b=ADgJW7lrP/wUgMroRHwuj91FXYAKeE3Q3etxgq2rpL6gYzj91hK3XLKEvg7EADSZs/ lEIsQaTRl8y7E1huHMQGyQTq7heLUfMX7/Logum0soQco+Gyijb+MbPq/WWSlZ/l3+Wn g2RebXgBwj+q/6OvmxQJtM5zf/yOq+Xx5nnenWlPFljQptI449ppXv+geq5v3HXoOk/9 zF1uF+5a9/BGFVuqP60a9dKNYifmEkW53LLWblfj8PL9MBEKyM+WU7tRvsSohAK+Lv3U mvq28ju2DIdQnhFaiT2c/ktlvwRan2Wt6im3la64TB1vHCcVO+fThLg5ZxrsN6I+cj29 T5jA== 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 i17-20020a17090332d100b0017f8d9b7e5fsi12773984plr.133.2022.11.21.02.35.31; Mon, 21 Nov 2022 02:35:51 -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 S231325AbiKUKZF (ORCPT + 99 others); Mon, 21 Nov 2022 05:25:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbiKUKZC (ORCPT ); Mon, 21 Nov 2022 05:25:02 -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 BAB7F8CFCC for ; Mon, 21 Nov 2022 02:25:01 -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 1ox3z1-0008Pk-L2; Mon, 21 Nov 2022 11:24:59 +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 1ox3z0-005dP2-3A; Mon, 21 Nov 2022 11:24:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ox3z0-000YG2-DD; Mon, 21 Nov 2022 11:24:58 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Matti Vaittinen , Lee Jones Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH] mfd: rohm-bd9576: convert to i2c's .probe_new() Date: Mon, 21 Nov 2022 11:24:54 +0100 Message-Id: <20221121102454.15664-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=990; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=L4ZEXavhL0XEdzdCGTRYtbxFUCH0CVdrdVnnZLFA96E=; b=owEBbQGS/pANAwAKAcH8FHityuwJAcsmYgBje1HyxWXq6XIqyCXxzxwrSovrISgUb7LtXGKB74Qs LqGBUByJATMEAAEKAB0WIQR+cioWkBis/z50pAvB/BR4rcrsCQUCY3tR8gAKCRDB/BR4rcrsCcZKB/ 4tPJxyR8kaYYnnReCqP/Rax41+JVHpeYqQVqWWvp6aJQnf4Y1wy0B6Wsl/RFIhmwCsNDhSkO4IItwE kgY76m3aA37FsO5BNSULF4Ucrr2KLtP/ONEumYt6H+OYAm4SfDXkt3Ly7Pk3FGqs51D37Ifg4Dg3im 57Ute6MY8sYLoI0FS5I+uvE6/qWjFNMsbdz3nzP42A7CFvz+gCqFRiyE6Vj3znfLw7fr70wf1wNIGK n5WYHs+e9/EMC/p+dwIh9CL2ImNJnkzVyO7gJUb+qGDJfzp/UKwqWgaZuykeMglcBiTNjbWcOUVNQi nDZuBjX6VWeH2huD930Cy5u1BOG5UK X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 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.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1750101604757798440?= X-GMAIL-MSGID: =?utf-8?q?1750101604757798440?= 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 Acked-by: Matti Vaittinen --- drivers/mfd/rohm-bd9576.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c index f37cd4f27aeb..c854ab5bcd80 100644 --- a/drivers/mfd/rohm-bd9576.c +++ b/drivers/mfd/rohm-bd9576.c @@ -88,8 +88,7 @@ static struct regmap_irq_chip bd9576_irq_chip = { .irq_reg_stride = 1, }; -static int bd957x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int bd957x_i2c_probe(struct i2c_client *i2c) { int ret; struct regmap *regmap; @@ -180,7 +179,7 @@ static struct i2c_driver bd957x_drv = { .name = "rohm-bd957x", .of_match_table = bd957x_of_match, }, - .probe = &bd957x_i2c_probe, + .probe_new = &bd957x_i2c_probe, }; module_i2c_driver(bd957x_drv);