From patchwork Fri Nov 18 22:40:27 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: 23037 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp480370wrr; Fri, 18 Nov 2022 16:20:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JkTR+bKV9udV0I63DGKPBTJIbqMdqj3Nj+BJ5iYsbuxdYRDy+oLpy6y8IaFIIyRB+sM+e X-Received: by 2002:a17:906:190c:b0:7ae:c1b2:d912 with SMTP id a12-20020a170906190c00b007aec1b2d912mr7503000eje.577.1668817203127; Fri, 18 Nov 2022 16:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668817203; cv=none; d=google.com; s=arc-20160816; b=iI63pxfV0SLZzywzfcyXae2Ka6Mmfww3cMVHVK6b+NKFcU52/BzTAsGFHB6N9ZYkDx yTvIK3Qn7Rw35O16BGuXxUZOVrbhGzLXTX7Mv2ra2JRHVVX+SCEYUZ914ZEiqDgh/p5R ifDglx1zhyvEmhwb1ZSJ6gHAGyHTvf89CEpcFypIbt3AgSfukPRnb/hyv1ALw8eVQbVh N32VUY9Hs+uIVtaN8uOt4X5tF0+BNFMTlZkI7u/oEU2AEocqMWvA6lfSIBBA4RqtrDYU JjhZE4yFRNf8WrfDUD08RIFFKLdTmmNrGWahLQMW/3K/rnF4LxxQUqVNIiB7AngAqV5K +uKA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a05640210cd00b00461a144e981si3654374edu.356.2022.11.18.16.19.39; Fri, 18 Nov 2022 16:20:03 -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 + 99 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_Kleine-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_Kleine-K?= =?utf-8?q?=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 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?1749881667413388803?= X-GMAIL-MSGID: =?utf-8?q?1749881667413388803?= 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, };