Commit 8360705a authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Dmitry Torokhov

Input: wdt87xx_i2c - Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-266-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 0a3098db
...@@ -1064,8 +1064,7 @@ static int wdt87xx_ts_create_input_device(struct wdt87xx_data *wdt) ...@@ -1064,8 +1064,7 @@ static int wdt87xx_ts_create_input_device(struct wdt87xx_data *wdt)
return 0; return 0;
} }
static int wdt87xx_ts_probe(struct i2c_client *client, static int wdt87xx_ts_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct wdt87xx_data *wdt; struct wdt87xx_data *wdt;
int error; int error;
...@@ -1170,7 +1169,7 @@ static const struct acpi_device_id wdt87xx_acpi_id[] = { ...@@ -1170,7 +1169,7 @@ static const struct acpi_device_id wdt87xx_acpi_id[] = {
MODULE_DEVICE_TABLE(acpi, wdt87xx_acpi_id); MODULE_DEVICE_TABLE(acpi, wdt87xx_acpi_id);
static struct i2c_driver wdt87xx_driver = { static struct i2c_driver wdt87xx_driver = {
.probe = wdt87xx_ts_probe, .probe_new = wdt87xx_ts_probe,
.id_table = wdt87xx_dev_id, .id_table = wdt87xx_dev_id,
.driver = { .driver = {
.name = WDT87XX_NAME, .name = WDT87XX_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment