From patchwork Fri Nov 18 22:35:37 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: 22543 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447034wrr; Fri, 18 Nov 2022 14:48:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CCjYEZaY6P9Ej1lQSp1mL/b4/DNtoKK0wfSIvu1Imklo/XENOZ4223YiO3nGtVekCT6zT X-Received: by 2002:a05:6402:1a2e:b0:461:2915:e41d with SMTP id be14-20020a0564021a2e00b004612915e41dmr7793788edb.184.1668811685931; Fri, 18 Nov 2022 14:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668811685; cv=none; d=google.com; s=arc-20160816; b=ZYRFyketX00YeExbUHfO0NShZtixb5i/xstXMhQiPzh9hyyhUqKXf6NuZ5aERHx5KX qcdJdpk4UshnaAQ/h+zFbkbH9GuDEFs4jx3tWO8pbzAiBZqWXfX5OxiyE3+hdNWXTe/y FmiYPjCiflngjLTOWz6pTJGb8YGrMzUk+bSgk8VwJVyQ9HizPW78TWQz2K48Rb3hVgT/ CkV9kB/RzAVJXWjH/kl0F4FiiE/14GfEiHaSo+5/OYwgxo2brHnCldh0949x3T2npu0K 2EFbSjpVF7nS9bEItC2DeAVdogVVnxVU5UttoIb692KtnwKGI+ODPj1hfDV2rqFRy6Fq Tv7Q== 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=6+p8RzFgrk55xg+YLXmCSISpi+SCNbBmWn/EDnh9XL8=; b=zceI4npgrr9/J22hlHjplMeA4Le/IO9IXmIYDp88sAnfijYVlK+9Oqb0te2e64Cgdb 9bqyZ+RMB6YIhOIkfdrVvFBCP14XTTiptCMXBSO7nUPiyGGgIFGpIt5pPfN+t8Le1ROB m6nJdZzzKpe7L9BAVHZ9lPDgPB57iiq0qpXC9579PuhDKSIWSG683BBqIHQOgejnYFwq Uob8vXwgKnAH6y1ec1TYeUXvLzIbuiQscRcoQIw7TXv0thi7JL4rdRpeqyGUiuYi9YoQ V5WUKD47rDAN44p6Zx8/ZKPeZHSZ3iOkBdj26AjYso/jU3pagUuJY+WZDa0P8xkDQ6Qd +/XA== 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 xc9-20020a170907074900b00791a4f70674si3934192ejb.24.2022.11.18.14.47.42; Fri, 18 Nov 2022 14:48: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 S232602AbiKRWrI (ORCPT + 99 others); Fri, 18 Nov 2022 17:47:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231623AbiKRWq1 (ORCPT ); Fri, 18 Nov 2022 17:46:27 -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 7EE44970B2 for ; Fri, 18 Nov 2022 14:46:24 -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 1owA7e-0007PD-F9; Fri, 18 Nov 2022 23:46:10 +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 1owA7c-00587w-K1; Fri, 18 Nov 2022 23:46:09 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1owA7c-00Hav7-NE; Fri, 18 Nov 2022 23:46:08 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Peter Huewe , Jarkko Sakkinen Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 003/606] tpm: tpm_i2c_infineon: Convert to i2c's .probe_new() Date: Fri, 18 Nov 2022 23:35:37 +0100 Message-Id: <20221118224540.619276-4-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?1749875882816740144?= X-GMAIL-MSGID: =?utf-8?q?1749875882816740144?= 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 Acked-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_i2c_infineon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm_i2c_infineon.c index fd3c3661e646..7cdaff52a96d 100644 --- a/drivers/char/tpm/tpm_i2c_infineon.c +++ b/drivers/char/tpm/tpm_i2c_infineon.c @@ -681,8 +681,7 @@ MODULE_DEVICE_TABLE(of, tpm_tis_i2c_of_match); static SIMPLE_DEV_PM_OPS(tpm_tis_i2c_ops, tpm_pm_suspend, tpm_pm_resume); -static int tpm_tis_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tpm_tis_i2c_probe(struct i2c_client *client) { int rc; struct device *dev = &(client->dev); @@ -717,7 +716,7 @@ static void tpm_tis_i2c_remove(struct i2c_client *client) static struct i2c_driver tpm_tis_i2c_driver = { .id_table = tpm_tis_i2c_table, - .probe = tpm_tis_i2c_probe, + .probe_new = tpm_tis_i2c_probe, .remove = tpm_tis_i2c_remove, .driver = { .name = "tpm_i2c_infineon",