Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1319455rwb; Fri, 18 Nov 2022 16:40:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OWLwbvKhNJ5M1KafsB/uMq/9uXOxhCzFQNRiwfyc4pZk4yjhZSdyEVKZ0kWy819L4QJj3 X-Received: by 2002:a17:906:c40b:b0:7ae:1e53:95b2 with SMTP id u11-20020a170906c40b00b007ae1e5395b2mr7782702ejz.333.1668818405896; Fri, 18 Nov 2022 16:40:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818405; cv=none; d=google.com; s=arc-20160816; b=kHtEDogpFt+fL5wfQwze2UUx11mz7DnJsBbdr3Je5mkWHyYUUB9qlTZmcUuZ127Ysy Xtm1ycSHaZlgcOIPxU/rfjYEUoFumQ5jJ/yjyWf2CV2pZoFiNQVUEDDMAgyTQavnbO4P yo8ioN0F5r6d2OTvzIzBXHg3rR0VyhdXUeUw/DzHyJNBb9f9+EmpJKn4BnVPUraWXKfN /5LCelnTxwH4RSOJWo2iPmyAKIgz9FMXsQno32gAHBgXA687EGdhjvfuEHCOFGVX9jLt n3C/b0r15s4R3lOelqlRSMipsyIzSznjtplLxxYM7luY1irlIpXsblxvqqTXwf+oeNxV qRjQ== 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=VZcqbLEueJ6VXYicNKivwjz7jAANcIR43vcd5gnQ+jI=; b=p3uE8nbvZxhn2FaGuhpQy17zKFx+zb1hAac9Jgf680+/qpsF7MFTkd571cCuyEMAm8 /z4gbciw02Plcm3GHnoDOIKS7T9hP7BDQYH+ZSN+z8J2UsD16sEZXC0HIy/kSTZ+RIQH ojwThfhY+RK02t+pfCFKrpdZZ0FM3TxqYUTTDQ5xVbsha46nIegEpLkGeui9S2W6w+d6 hVCD/1vZoWyjbbSjvOjdbaMbc/aWtxGf695Qm2tgMVEvJzDlLLe33pv49MSJ7iaao4or N7an5sj4/I3EQUA974vNN48SFIdmZItgXyY+UWSbusKwDQpUDZjHxZGXvIik2zReWcyI U3Kw== 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 qo14-20020a170907874e00b007ae931d56f9si3650365ejc.89.2022.11.18.16.39.43; Fri, 18 Nov 2022 16:40:05 -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 S234462AbiKRXkZ (ORCPT + 90 others); Fri, 18 Nov 2022 18:40:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236792AbiKRXhz (ORCPT ); Fri, 18 Nov 2022 18:37:55 -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 088B9950EE for ; Fri, 18 Nov 2022 15:22:40 -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 1owA9H-00049W-Em; Fri, 18 Nov 2022 23:47:51 +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 1owA9E-0058h7-Vb; Fri, 18 Nov 2022 23:47:49 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9D-0000L5-2O; Fri, 18 Nov 2022 23:47:47 +0100 From: =?UTF-8?q?Uwe=20Kleine-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=20Kleine-K=C3=B6nig?= , linux-kernel@vger.kernel.org Subject: [PATCH 436/606] mfd: lp8788: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:42:50 +0100 Message-Id: <20221118224540.619276-437-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=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 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/lp8788.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/lp8788.c b/drivers/mfd/lp8788.c index 724a5712b36b..fe809b64147e 100644 --- a/drivers/mfd/lp8788.c +++ b/drivers/mfd/lp8788.c @@ -166,7 +166,7 @@ static const struct regmap_config lp8788_regmap_config = { .max_register = MAX_LP8788_REGISTERS, }; -static int lp8788_probe(struct i2c_client *cl, const struct i2c_device_id *id) +static int lp8788_probe(struct i2c_client *cl) { struct lp8788 *lp; struct lp8788_platform_data *pdata = dev_get_platdata(&cl->dev); @@ -225,7 +225,7 @@ static struct i2c_driver lp8788_driver = { .driver = { .name = "lp8788", }, - .probe = lp8788_probe, + .probe_new = lp8788_probe, .remove = lp8788_remove, .id_table = lp8788_ids, }; -- 2.38.1