From patchwork Fri Nov 18 22:40:26 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: 22970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp476439wrr; Fri, 18 Nov 2022 16:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf60ZsG0Z05yoyFGpWjZSlDBHXLL2Wbqkz1x5gP/KBrB9hCnM57lofALYjc4/Kp3CytT5DOd X-Received: by 2002:a05:6402:910:b0:468:74:9668 with SMTP id g16-20020a056402091000b0046800749668mr1749469edz.394.1668816544042; Fri, 18 Nov 2022 16:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668816544; cv=none; d=google.com; s=arc-20160816; b=CfcSS0B5WZsJnxVNsog1n853EntqGJlfwTGf9iAdUhkky8vwuLT5N6gsKLJ00L4eLc N7GuUY8+fxbjlmk55RM7KybW+Q3TgQrf4gh1KZ4H6cYJAudpmfV5TiubFLU+nfDMiEDT sbSPhUuDX+Y7HzGJXF1B1VP3GqzyGV50zq76x0lSMgQGbcMuqikTXkAt8drcqmRpKQ9m ZDHHsqQYCjlLYoIlLb6b6fQZHV6EzTH8BZDvU96x6+E9JyeTBflyaKAKshGzLrDyShPh ruFCnJO+DxOaMsjbGm+yV1ZbEE5YghZGxTxcL5dO29UpsEHnKaqByf2rLaEOpajWmyBg 1gXA== 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=JYaL6AwKD8Nl4CN/VroIfLkyUOoxRA/jm0wiRSR0ytI=; b=dpyXpiRix5enPFc/fO/pHlEvFbv+MBxOj6PXx0FQFDgQjK9SnAiUGWoOF/OYwpvYtZ 76MUzmV0yd8v/6hk/Hic+Lj6I16T2gL5iHKlm9fAO4NB/Pi7CQC1xAnrKK+RoGM9DePF Ur2oNqvUB8hG4xhmjb6Jj6hzzS86qxfRZ0fnMdQeHdji3BM4Lc6kjaxyEPuQnCs+YEr1 WmXHmGof61IYo83NStXSxf/2W65jtDQGhSs9jFhHdBSGf3ejacwdXSKhh/YmT2LGYFa9 mFSDNPEPOr2U3ZM896Ee8jCM+JuSS1Jw6lAXzjzzo+dJc/MiO645mkIMvYBPxfsnXyax v8aQ== 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 y14-20020a056402170e00b0045d5b83114esi4113148edu.112.2022.11.18.16.08.36; Fri, 18 Nov 2022 16:09:04 -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 S237355AbiKSAEO (ORCPT + 99 others); Fri, 18 Nov 2022 19:04:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237772AbiKSADN (ORCPT ); Fri, 18 Nov 2022 19:03:13 -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 C76C5CFB9C for ; Fri, 18 Nov 2022 15:30:32 -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-0002fz-Ty; 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 1owA8f-0058Ux-Ss; Fri, 18 Nov 2022 23:47:14 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA8g-0000Af-5Z; 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 , Adrien Grassein , Jeremy Kerr , Miguel Ojeda , Luca Ceresoli , 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 292/606] macintosh: windfarm_ad7417_sensor: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:40:26 +0100 Message-Id: <20221118224540.619276-293-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?1749880976644924228?= X-GMAIL-MSGID: =?utf-8?q?1749880976644924228?= 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_ad7417_sensor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/macintosh/windfarm_ad7417_sensor.c b/drivers/macintosh/windfarm_ad7417_sensor.c index c5c54a4ce91f..33b4723d235e 100644 --- a/drivers/macintosh/windfarm_ad7417_sensor.c +++ b/drivers/macintosh/windfarm_ad7417_sensor.c @@ -229,8 +229,7 @@ static void wf_ad7417_init_chip(struct wf_ad7417_priv *pv) pv->config = config; } -static int wf_ad7417_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int wf_ad7417_probe(struct i2c_client *client) { struct wf_ad7417_priv *pv; const struct mpu_data *mpu; @@ -321,7 +320,7 @@ static struct i2c_driver wf_ad7417_driver = { .name = "wf_ad7417", .of_match_table = wf_ad7417_of_id, }, - .probe = wf_ad7417_probe, + .probe_new = wf_ad7417_probe, .remove = wf_ad7417_remove, .id_table = wf_ad7417_id, };