Skip to content

Commit 0a3098d

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: wacom_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: Uwe Kleine-König <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 4e9d70a commit 0a3098d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/wacom_i2c.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ static void wacom_i2c_close(struct input_dev *dev)
162162
disable_irq(client->irq);
163163
}
164164

165-
static int wacom_i2c_probe(struct i2c_client *client,
166-
const struct i2c_device_id *id)
165+
static int wacom_i2c_probe(struct i2c_client *client)
167166
{
168167
struct device *dev = &client->dev;
169168
struct wacom_i2c *wac_i2c;
@@ -265,7 +264,7 @@ static struct i2c_driver wacom_i2c_driver = {
265264
.pm = &wacom_i2c_pm,
266265
},
267266

268-
.probe = wacom_i2c_probe,
267+
.probe_new = wacom_i2c_probe,
269268
.id_table = wacom_i2c_id,
270269
};
271270
module_i2c_driver(wacom_i2c_driver);

0 commit comments

Comments
 (0)