From: Jean Delvare <jdelvare@suse.de>
To: "Uwe Kleine-König" <uwe@kleine-koenig.org>
Cc: linux-input@vger.kernel.org,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
linux-kernel@vger.kernel.org, "Wolfram Sang" <wsa@kernel.org>,
"Angel Iglesias" <ang.iglesiasg@gmail.com>,
linux-i2c@vger.kernel.org, kernel@pengutronix.de,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Grant Likely" <grant.likely@linaro.org>,
"Lee Jones" <lee.jones@linaro.org>,
"Claudiu Beznea" <claudiu.beznea@microchip.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 209/606] Input: atmel_captouch - Convert to i2c's .probe_new()
Date: Tue, 6 Dec 2022 11:49:29 +0100 [thread overview]
Message-ID: <20221206114929.085b6f09@endymion.delvare> (raw)
In-Reply-To: <20221118224540.619276-210-uwe@kleine-koenig.org>
On Fri, 18 Nov 2022 23:39:03 +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/input/misc/atmel_captouch.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/misc/atmel_captouch.c b/drivers/input/misc/atmel_captouch.c
> index 156c699a8913..d9704b174d3a 100644
> --- a/drivers/input/misc/atmel_captouch.c
> +++ b/drivers/input/misc/atmel_captouch.c
> @@ -161,8 +161,7 @@ static irqreturn_t atmel_captouch_isr(int irq, void *data)
> /*
> * Probe function to setup the device, input system and interrupt
> */
> -static int atmel_captouch_probe(struct i2c_client *client,
> - const struct i2c_device_id *id)
> +static int atmel_captouch_probe(struct i2c_client *client)
> {
> struct atmel_captouch_device *capdev;
> struct device *dev = &client->dev;
> @@ -264,7 +263,7 @@ static const struct i2c_device_id atmel_captouch_id[] = {
> MODULE_DEVICE_TABLE(i2c, atmel_captouch_id);
>
> static struct i2c_driver atmel_captouch_driver = {
> - .probe = atmel_captouch_probe,
> + .probe_new = atmel_captouch_probe,
> .id_table = atmel_captouch_id,
> .driver = {
> .name = "atmel_captouch",
Reviewed-by: Jean Delvare <jdelvare@suse.de>
--
Jean Delvare
SUSE L3 Support
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-12-06 10:50 UTC|newest]
Thread overview: 40+ 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 002/606] tpm: tpm_i2c_atmel: Convert to i2c's .probe_new() Uwe Kleine-König
2022-11-28 1:15 ` Jarkko Sakkinen
2022-11-18 22:35 ` [PATCH 006/606] crypto: atmel-ecc - " Uwe Kleine-König
2022-11-25 9:46 ` Herbert Xu
2022-11-18 22:35 ` [PATCH 007/606] crypto: atmel-sha204a " Uwe Kleine-König
2022-11-25 9:46 ` Herbert Xu
2022-11-18 22:36 ` [PATCH 043/606] drm/panel: raspberrypi-touchscreen: " Uwe Kleine-König
2022-12-22 22:59 ` Javier Martinez Canillas
2023-01-10 10:12 ` Javier Martinez Canillas
2022-11-18 22:39 ` [PATCH 209/606] Input: atmel_captouch - " Uwe Kleine-König
2022-12-06 10:49 ` Jean Delvare [this message]
2022-11-18 22:39 ` [PATCH 260/606] Input: stmfts " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 460/606] mfd: stmfx: " Uwe Kleine-König
2022-11-18 22:43 ` [PATCH 461/606] mfd: stmpe-i2c: " Uwe Kleine-König
2022-11-18 22:45 ` [PATCH 584/606] usb: typec: ucsi: stm32g0: " Uwe Kleine-König
2022-11-21 9:09 ` Heikki Krogerus
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-11-23 12:11 ` (subset) " Mark Brown
2022-11-23 17:23 ` Mark Brown
2022-11-24 12:27 ` Mark Brown
2022-11-24 13:26 ` Mark Brown
2022-11-24 13:50 ` Mark Brown
2022-11-24 14:03 ` Mark Brown
2022-11-24 14:28 ` Mark Brown
2022-11-24 15:15 ` Mark Brown
2022-11-24 15:26 ` Mark Brown
2022-11-24 15:38 ` Mark Brown
2022-11-24 15:49 ` Mark Brown
2022-11-24 16:04 ` Mark Brown
2022-11-25 14:27 ` Mark Brown
2022-12-09 12:00 ` 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=20221206114929.085b6f09@endymion.delvare \
--to=jdelvare@suse.de \
--cc=alexandre.belloni@bootlin.com \
--cc=ang.iglesiasg@gmail.com \
--cc=claudiu.beznea@microchip.com \
--cc=dmitry.torokhov@gmail.com \
--cc=grant.likely@linaro.org \
--cc=kernel@pengutronix.de \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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