Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1318895rwb; Fri, 18 Nov 2022 16:39:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5E0CqxizGNuZ79wJizviCMH1xBoKsdlrxQijXTuvgFytrMzm1bx+Y1sjA59ximV013cFMN X-Received: by 2002:aa7:c145:0:b0:469:400a:3f8e with SMTP id r5-20020aa7c145000000b00469400a3f8emr969381edp.108.1668818366946; Fri, 18 Nov 2022 16:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668818366; cv=none; d=google.com; s=arc-20160816; b=apRVtp5UAkJIT6GAXsnRNqji13D1f+LFntzLlbA3Pi4jBPX0lrzh2BWrR2C+2st+0x /tgDdjRMfeQ8m6gOPfKeyoyHvswAsn/aj3D8a1ZzSZ2qLKRh7iJQD1qeuMVplL7aLhf/ 4lP8DVAbZ26ZqyZKlLN5zBTjnEUnYmXXNvvjorXerivaQgTDu9EqAvrex5jiuErUfhzs ti6yQdkU1fNHub3TzKTo7qN4X5dEjYvEOEl7AoLb5KYP88AmBiGLwI9YYjoQZFqQTtp9 DkXVISQ5tRtUNkC5yP4XGAYCoiq9d2WqWfQ8wyc1qo4P3unNSU44oPDCKl6esCsPYByf pcIQ== 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=MMSqNxvOY6VPWcdc/pL+ev7WAVUnS1cUuHdoBcihy4A=; b=yc44yYFMuZtzP5aDBkeA2AyKPwuI4Aey9YaFWJMUSbfKlZnAfXVQ2IvGy1Te2r1Oj4 CT8VM9F9zhH1nkUBwtBvYCgyo0hyVXNW43ozPPYeq13dFZscWpG+kFHWM7HqVNVP6C4g 44OX9okhBdjo1buhos45LER1xz4r//F/wHxesfV7M4TDAOiETrxSZ0SBS+yDgwuU1EWo 7Otu3p3jKBQwxUtlysxC/t3gvhS2pzegg/WzcwmxWJqBWnY4kk8WpNSKICoLLFFL0uNs pugF52uB1KqFym2IeOv+zXa+5QBkMkLvIYMoBErok/JF7aRNOwHDzk0kfTFwKIB8Bv8T JePQ== 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 be1-20020a1709070a4100b007ae0ca417e4si4440859ejc.690.2022.11.18.16.38.59; Fri, 18 Nov 2022 16:39:26 -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 S237666AbiKSASl (ORCPT + 90 others); Fri, 18 Nov 2022 19:18:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234050AbiKSAQs (ORCPT ); Fri, 18 Nov 2022 19:16:48 -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 7B116B7004 for ; Fri, 18 Nov 2022 15:35:36 -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 1owA8j-0002hB-Tz; Fri, 18 Nov 2022 23:47:17 +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 1owA8g-0058VA-An; Fri, 18 Nov 2022 23:47:15 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8g-0000Aj-Fv; Fri, 18 Nov 2022 23:47:14 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Benjamin Herrenschmidt , Petr Machata , Peter Rosin , Crt Mori , Christophe Leroy Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 293/606] macintosh: windfarm_fcu_controls: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:27 +0100 Message-Id: <20221118224540.619276-294-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/macintosh/windfarm_fcu_controls.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_fcu_controls.c b/drivers/macintosh/windfarm_fcu_controls.c index c5b1ca5bcd73..e027d889d7e8 100644 --- a/drivers/macintosh/windfarm_fcu_controls.c +++ b/drivers/macintosh/windfarm_fcu_controls.c @@ -514,8 +514,7 @@ static int wf_fcu_init_chip(struct wf_fcu_priv *pv) return 0; } -static int wf_fcu_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_fcu_probe(struct i2c_client *client) { struct wf_fcu_priv *pv; @@ -590,7 +589,7 @@ static struct i2c_driver wf_fcu_driver = { .name = "wf_fcu", .of_match_table = wf_fcu_of_id, }, - .probe = wf_fcu_probe, + .probe_new = wf_fcu_probe, .remove = wf_fcu_remove, .id_table = wf_fcu_id, }; -- 2.38.1