Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp452604qtx; Fri, 18 Nov 2022 17:04:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf72koE2FNioRkypsaqCR1pfEndf19lB+vhsWot1y4T2GwGHS6g1zsO7g2ZxsrUm4AyXaSrm X-Received: by 2002:a17:902:e009:b0:188:b840:deff with SMTP id o9-20020a170902e00900b00188b840deffmr1902397plo.104.1668819881512; Fri, 18 Nov 2022 17:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668819881; cv=none; d=google.com; s=arc-20160816; b=RGStmqPEqUYAXuRFlUaGlTAuR1DKQ++edLKFpjktG42ExUGT3hj9hVg2hA9/dKjL7B 0Qm1CaGMtXlRxqLPaLtYpqinMEgTbwgVMXOtfOjR72vsWVGVyIyuABMDWUXgIS1yFI3C kpp+GvZ/LvBcodjtYdHm4vor7kgBXzjph1K+wNM2TgFkhFe/9Z8EXTzx9nJDK6UKcnpH YRTtM1pvWkV9bOLYvQw70q7r0U9yTlU5CZFijUI2/5YOlNV9rcSP+wBlICo8onIdpK5/ zuQ/t8wJeNLj/5soyEx2qnZZ89p2k7kRNfROeySrcow2NagZ6xaEBls7cuKHzfLOyQAJ 8C5A== 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=9QyPGXDGCQqsJD463MRyytap09Qm6/sv+y1E3yXQ4IA=; b=U0eHP4Z8OvYkTmEUDnVDrOikWJXHYje5f4ZvQEutQDbIbNl/H13omKgC/1BzR5mwXT 5zraOawFSPyfq7Al2d+g/a3CHTythdvzUd3gQfIyY9ttbcT4+IbKzIfAf09qHDeTMrpB lLCKMA3UeobbzADtMrzqf8G6LEL9UEKjis2splD7T3qNha5/RdfmEg2y49L5rdUho6LJ 5/E+IT0ugyb+zbPFUCVIrKcwoDaQflO4H4ONavbTg058GOffC7j9p5Cpgsw1A0kMIKoH ilJslbBZ6tSKtRgPJbG5RyqlIZJbGEnAsjNYhc2wINL8cBQtZUmcxhrMD/3sfYx7dDpQ 9IrQ== 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 o8-20020a170902d4c800b00186b697ec66si5783508plg.399.2022.11.18.17.04.30; Fri, 18 Nov 2022 17:04:41 -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 S235506AbiKRXWA (ORCPT + 90 others); Fri, 18 Nov 2022 18:22:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234568AbiKRXVF (ORCPT ); Fri, 18 Nov 2022 18:21:05 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B63ED4F1B4 for ; Fri, 18 Nov 2022 15:11:59 -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 1owA9N-0004Ow-2b; Fri, 18 Nov 2022 23:47:57 +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 1owA9K-0058jg-6l; Fri, 18 Nov 2022 23:47:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA9J-0000NN-Rn; Fri, 18 Nov 2022 23:47:53 +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 470/606] mfd: tps65090: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:43:24 +0100 Message-Id: <20221118224540.619276-471-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/mfd/tps65090.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index bd6235308c6b..e1f2491a2578 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -164,8 +164,7 @@ static const struct of_device_id tps65090_of_match[] = { }; #endif -static int tps65090_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tps65090_i2c_probe(struct i2c_client *client) { struct tps65090_platform_data *pdata = dev_get_platdata(&client->dev); int irq_base = 0; @@ -238,7 +237,7 @@ static struct i2c_driver tps65090_driver = { .suppress_bind_attrs = true, .of_match_table = of_match_ptr(tps65090_of_match), }, - .probe = tps65090_i2c_probe, + .probe_new = tps65090_i2c_probe, .id_table = tps65090_id_table, }; -- 2.38.1