linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: "Uwe Kleine-König" <uwe@kleine-koenig.org>
Cc: "Angel Iglesias" <ang.iglesiasg@gmail.com>,
	"Lee Jones" <lee.jones@linaro.org>,
	"Grant Likely" <grant.likely@linaro.org>,
	"Wolfram Sang" <wsa@kernel.org>,
	"Peter Huewe" <peterhuewe@gmx.de>,
	linux-i2c@vger.kernel.org, kernel@pengutronix.de,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Jason Gunthorpe" <jgg@ziepe.ca>,
	linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 005/606] tpm: tis_i2c: Convert to i2c's .probe_new()
Date: Mon, 28 Nov 2022 03:16:16 +0200	[thread overview]
Message-ID: <Y4QL4PDj8uK6VBHf@kernel.org> (raw)
In-Reply-To: <20221118224540.619276-6-uwe@kleine-koenig.org>

On Fri, Nov 18, 2022 at 11:35:39PM +0100, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> 
> 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 <u.kleine-koenig@pengutronix.de>
> ---
>  drivers/char/tpm/tpm_tis_i2c.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c
> index 0692510dfcab..18fa8b4672a8 100644
> --- a/drivers/char/tpm/tpm_tis_i2c.c
> +++ b/drivers/char/tpm/tpm_tis_i2c.c
> @@ -312,8 +312,7 @@ static const struct tpm_tis_phy_ops tpm_i2c_phy_ops = {
>  	.verify_crc = tpm_tis_i2c_verify_crc,
>  };
>  
> -static int tpm_tis_i2c_probe(struct i2c_client *dev,
> -			     const struct i2c_device_id *id)
> +static int tpm_tis_i2c_probe(struct i2c_client *dev)
>  {
>  	struct tpm_tis_i2c_phy *phy;
>  	const u8 crc_enable = 1;
> @@ -379,7 +378,7 @@ static struct i2c_driver tpm_tis_i2c_driver = {
>  		.pm = &tpm_tis_pm,
>  		.of_match_table = of_match_ptr(of_tis_i2c_match),
>  	},
> -	.probe = tpm_tis_i2c_probe,
> +	.probe_new = tpm_tis_i2c_probe,
>  	.remove = tpm_tis_i2c_remove,
>  	.id_table = tpm_tis_i2c_id,
>  };
> -- 
> 2.38.1
> 

Acked-by: Jarkko Sakkinen <jarkko@kernel.org>

BR, Jarkko

  reply	other threads:[~2022-11-28  1:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18 22:35 [PATCH 000/606] i2c: Complete conversion to i2c_probe_new Uwe Kleine-König
2022-11-18 22:35 ` [PATCH 001/606] tpm: st33zp24: Convert to Convert to i2c's .probe_new() Uwe Kleine-König
2022-11-28  1:14   ` Jarkko Sakkinen
2022-12-16  9:09   ` Uwe Kleine-König
2022-12-30 23:54     ` Jarkko Sakkinen
2023-01-06 17:56       ` Uwe Kleine-König
2023-01-20 22:00         ` Jarkko Sakkinen
2022-11-18 22:35 ` [PATCH 002/606] tpm: tpm_i2c_atmel: " Uwe Kleine-König
2022-11-28  1:15   ` Jarkko Sakkinen
2022-11-18 22:35 ` [PATCH 003/606] tpm: tpm_i2c_infineon: " Uwe Kleine-König
2022-11-28  1:15   ` Jarkko Sakkinen
2022-11-18 22:35 ` [PATCH 004/606] tpm: tpm_i2c_nuvoton: " Uwe Kleine-König
2022-11-28  1:15   ` Jarkko Sakkinen
2022-11-18 22:35 ` [PATCH 005/606] tpm: tis_i2c: " Uwe Kleine-König
2022-11-28  1:16   ` Jarkko Sakkinen [this message]
2022-11-19  6:50 ` [PATCH 000/606] i2c: Complete conversion to i2c_probe_new patchwork-bot+chrome-platform
2022-11-19  6:50 ` patchwork-bot+chrome-platform
2022-11-19 11:10 ` Wolfram Sang
2022-11-20 19:43 ` Sebastian Reichel
2022-11-21  9:53 ` Lee Jones
2022-11-22 18:58 ` Jonathan Cameron
2022-11-22 20:16   ` Uwe Kleine-König
2022-11-26 15:43     ` Andy Shevchenko
2022-12-09 12:00 ` (subset) " Robert Foss
2022-12-12 16:36 ` Robert Foss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y4QL4PDj8uK6VBHf@kernel.org \
    --to=jarkko@kernel.org \
    --cc=ang.iglesiasg@gmail.com \
    --cc=grant.likely@linaro.org \
    --cc=jgg@ziepe.ca \
    --cc=kernel@pengutronix.de \
    --cc=lee.jones@linaro.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterhuewe@gmx.de \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=uwe@kleine-koenig.org \
    --cc=wsa@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).