From: Hans de Goede <hdegoede@redhat.com>
To: "Uwe Kleine-König" <uwe@kleine-koenig.org>,
"Angel Iglesias" <ang.iglesiasg@gmail.com>,
"Lee Jones" <lee.jones@linaro.org>,
"Grant Likely" <grant.likely@linaro.org>,
"Wolfram Sang" <wsa@kernel.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>
Cc: linux-i2c@vger.kernel.org, kernel@pengutronix.de,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 257/606] Input: silead - Convert to i2c's .probe_new()
Date: Sat, 19 Nov 2022 13:59:36 +0100 [thread overview]
Message-ID: <4e3deedc-40f1-0bf9-798b-88185bd89be8@redhat.com> (raw)
In-Reply-To: <20221118224540.619276-258-uwe@kleine-koenig.org>
Hi,
On 11/18/22 23:39, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>
> .probe_new() doesn't get the i2c_device_id * parameter, so determine
> that explicitly in the probe function.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
> ---
> drivers/input/touchscreen/silead.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/touchscreen/silead.c b/drivers/input/touchscreen/silead.c
> index 3eef8c01090f..8a7351c4414c 100644
> --- a/drivers/input/touchscreen/silead.c
> +++ b/drivers/input/touchscreen/silead.c
> @@ -652,9 +652,9 @@ static void silead_disable_regulator(void *arg)
> regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators);
> }
>
> -static int silead_ts_probe(struct i2c_client *client,
> - const struct i2c_device_id *id)
> +static int silead_ts_probe(struct i2c_client *client)
> {
> + const struct i2c_device_id *id = i2c_client_get_device_id(client);
> struct silead_ts_data *data;
> struct device *dev = &client->dev;
> int error;
> @@ -826,7 +826,7 @@ MODULE_DEVICE_TABLE(of, silead_ts_of_match);
> #endif
>
> static struct i2c_driver silead_ts_driver = {
> - .probe = silead_ts_probe,
> + .probe_new = silead_ts_probe,
> .id_table = silead_ts_id,
> .driver = {
> .name = SILEAD_TS_NAME,
next prev parent reply other threads:[~2022-11-19 13:00 UTC|newest]
Thread overview: 101+ 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:38 ` [PATCH 191/606] Input: as5011 - Convert to i2c's .probe_new() Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 192/606] Input: adp5588-keys " Uwe Kleine-König
2022-11-21 9:48 ` Hennerich, Michael
2022-12-02 10:52 ` Uwe Kleine-König
2022-12-02 22:58 ` Dmitry Torokhov
2022-11-18 22:38 ` [PATCH 193/606] Input: adp5589-keys " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 194/606] Input: cap11xx " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 195/606] Input: dlink-dir685-touchkeys " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 196/606] Input: lm8323 " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 197/606] Input: lm8333 " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 198/606] Input: max7359_keypad " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 199/606] Input: mcs_touchkey " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 200/606] Input: mpr121_touchkey " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 201/606] Input: qt1070 " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 202/606] Input: qt2160 " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 203/606] Input: tca6416-keypad " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 204/606] Input: tca8418_keypad " Uwe Kleine-König
2022-11-18 22:38 ` [PATCH 205/606] Input: tm2-touchkey " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 206/606] Input: ad714x-i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 207/606] Input: adxl34x-i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 208/606] Input: apanel " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 209/606] Input: atmel_captouch " Uwe Kleine-König
2022-12-06 10:49 ` Jean Delvare
2022-11-18 22:39 ` [PATCH 210/606] Input: bma150 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 211/606] Input: cma3000_d0x_i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 212/606] Input: da7280 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 213/606] Input: drv260x " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 214/606] Input: drv2665 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 215/606] Input: drv2667 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 216/606] Input: ibm-panel " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 217/606] Input: kxtj9 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 218/606] Input: mma8450 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 219/606] Input: pcf8574_keypad " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 220/606] Input: cyapa " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 221/606] Input: elan_i2c_core " Uwe Kleine-König
2022-11-19 12:57 ` Hans de Goede
2022-11-18 22:39 ` [PATCH 222/606] Input: synaptics_i2c " Uwe Kleine-König
2022-12-06 10:49 ` Jean Delvare
2022-11-18 22:39 ` [PATCH 223/606] Input: rmi_i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 224/606] Input: rmi_smbus " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 225/606] Input: ad7879-i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 226/606] Input: ar1021_i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 227/606] Input: atmel_mxt_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 228/606] Input: auo-pixcir-ts " Uwe Kleine-König
2022-11-19 8:41 ` Heiko Stübner
2022-11-18 22:39 ` [PATCH 229/606] Input: bu21013_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 230/606] Input: bu21029_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 231/606] Input: chipone_icn8318 " Uwe Kleine-König
2022-11-19 12:57 ` Hans de Goede
2022-11-18 22:39 ` [PATCH 232/606] Input: cy8ctma140 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 233/606] Input: cy8ctmg110_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 234/606] Input: cyttsp4 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 235/606] Input: cyttsp5: " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 236/606] Input: cyttsp_i2c - " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 237/606] Input: edt-ft5x06 " Uwe Kleine-König
2022-11-21 7:42 ` Oliver Graute
2022-11-18 22:39 ` [PATCH 238/606] Input: eeti_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 239/606] Input: egalax_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 240/606] Input: ektf2127 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 241/606] Input: goodix " Uwe Kleine-König
2022-11-19 12:57 ` Hans de Goede
2022-11-18 22:39 ` [PATCH 242/606] Input: hideep " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 243/606] Input: hx83112b: " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 244/606] Input: hycon-hy46xx - " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 245/606] Input: ili210x " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 246/606] Input: ilitek_ts_i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 247/606] Input: iqs5xx " Uwe Kleine-König
2022-11-20 18:41 ` Jeff LaBundy
2022-11-18 22:39 ` [PATCH 248/606] Input: max11801_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 249/606] Input: mcs5000_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 250/606] Input: melfas_mip4 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 251/606] Input: migor_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 252/606] Input: mms114 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 253/606] Input: pixcir_i2c_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 254/606] Input: raydium_i2c_ts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 255/606] Input: rohm_bu21023 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 256/606] Input: s6sy761 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 257/606] Input: silead " Uwe Kleine-König
2022-11-19 12:59 ` Hans de Goede [this message]
2022-11-18 22:39 ` [PATCH 258/606] Input: sis_i2c " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 259/606] Input: st1232 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 260/606] Input: stmfts " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 261/606] Input: sx8654 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 262/606] Input: tsc2004 " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 263/606] Input: tsc2007_core " Uwe Kleine-König
2022-11-18 22:39 ` [PATCH 264/606] Input: wacom_i2c " Uwe Kleine-König
2022-11-18 23:27 ` Alistair
2022-11-18 22:39 ` [PATCH 265/606] Input: wdt87xx_i2c " Uwe Kleine-König
2022-11-18 22:40 ` [PATCH 266/606] Input: zet6223 " Uwe Kleine-König
2022-11-18 22:40 ` [PATCH 267/606] Input: zforce_ts " Uwe Kleine-König
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=4e3deedc-40f1-0bf9-798b-88185bd89be8@redhat.com \
--to=hdegoede@redhat.com \
--cc=ang.iglesiasg@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=grant.likely@linaro.org \
--cc=kernel@pengutronix.de \
--cc=lee.jones@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@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;
as well as URLs for NNTP newsgroup(s).