From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9387C4332F for ; Mon, 28 Nov 2022 01:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eMiT27igNVL8QSPZVwhLmPX/VyRsd7Tuc6pDxRC4Rbg=; b=LKkZSjx14r2dfL SWg9nmMfQUBtI39bOrk2gIcDsjVJOWaohmTvJqVSEOrumrAUToNmBRCcx0fySJn/o91jDbf4geGpj 32QSLk3yTTEGdRJMYdF/e3KBSxlZA9UcjQNYJ9mPIDhnVnXvTmxoI3b0WK2maL3dq6TqDge/SlkId ApnWaMg6UA9s74CvoA9SQ22UI43Cgn17gCIqGwoOnG03DxBcggFnJSZZ/gsqy57Em/oDUQ239r8/3 ShlGO8vlzPAlh3md/dDxxJiecOJ72+HSsc4EcPEo6ByjSiSP6jqPupNW8U5w3E4PTX2WgxBCQr8qV K+fNzzZnyfILWmNrQ05A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozSkL-00EZwZ-P2; Mon, 28 Nov 2022 01:15:45 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozSkJ-00EZqs-9Z for linux-arm-kernel@lists.infradead.org; Mon, 28 Nov 2022 01:15:44 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D7E80B80C81; Mon, 28 Nov 2022 01:15:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01CFDC433D6; Mon, 28 Nov 2022 01:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669598120; bh=/Rnol2q+EPqB/pwlNw7OYMzt/EyzBj9Z7D9TcRA3sd4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XS3Ytjv821v6NHxBDyCoAjjzVY5v6WDW4tneP3NFLFqoM4xEvygSObVrnPBJGi5vC ziLgMaOj7KvOtLP8dfDYmJt8wiUMjsanZfz9T1T2UjUleJeXtnelQ0mcRN1rS0wPym Kn73HcGj9zFHskmg8ERkuE1NBHqQEzeXnZK+u4AgqxtZrMJxvg7IZB/tcDMKJ7uavM fPNS/OUGECUDP4afQSj5IRgwBlygrT/iYRsihYiS0+bpm9nkP5ZJxa3PubnClB79Rj vQqvDsGiTeug+dWwFVnEWeSMYb2wujhhV7yv8AYnV2cYszB0NHLvCBrKfO7aMrygOj c0I9tBhfm3Vdw== Date: Mon, 28 Nov 2022 03:15:15 +0200 From: Jarkko Sakkinen To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH 002/606] tpm: tpm_i2c_atmel: Convert to i2c's .probe_new() Message-ID: References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-3-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221118224540.619276-3-uwe@kleine-koenig.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_171543_498106_BED40A4B X-CRM114-Status: GOOD ( 20.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , linux-kernel@vger.kernel.org, Wolfram Sang , Jason Gunthorpe , Angel Iglesias , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Grant Likely , linux-integrity@vger.kernel.org, Peter Huewe , Lee Jones , Claudiu Beznea , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 18, 2022 at 11:35:36PM +0100, Uwe Kleine-K=F6nig wrote: > From: Uwe Kleine-K=F6nig > = > 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=F6nig > --- > drivers/char/tpm/tpm_i2c_atmel.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > = > diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_= atmel.c > index 4be3677c1463..8f77154e0550 100644 > --- a/drivers/char/tpm/tpm_i2c_atmel.c > +++ b/drivers/char/tpm/tpm_i2c_atmel.c > @@ -146,8 +146,7 @@ static const struct tpm_class_ops i2c_atmel =3D { > .req_canceled =3D i2c_atmel_req_canceled, > }; > = > -static int i2c_atmel_probe(struct i2c_client *client, > - const struct i2c_device_id *id) > +static int i2c_atmel_probe(struct i2c_client *client) > { > struct tpm_chip *chip; > struct device *dev =3D &client->dev; > @@ -204,7 +203,7 @@ static SIMPLE_DEV_PM_OPS(i2c_atmel_pm_ops, tpm_pm_sus= pend, tpm_pm_resume); > = > static struct i2c_driver i2c_atmel_driver =3D { > .id_table =3D i2c_atmel_id, > - .probe =3D i2c_atmel_probe, > + .probe_new =3D i2c_atmel_probe, > .remove =3D i2c_atmel_remove, > .driver =3D { > .name =3D I2C_DRIVER_NAME, > -- = > 2.38.1 > = Acked-by: Jarkko Sakkinen BR, Jarkko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel