Skip to content

Commit f8684ea

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: zet6223 - 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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 8360705 commit f8684ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/zet6223.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ static int zet6223_query_device(struct zet6223_ts *ts)
167167
return 0;
168168
}
169169

170-
static int zet6223_probe(struct i2c_client *client,
171-
const struct i2c_device_id *id)
170+
static int zet6223_probe(struct i2c_client *client)
172171
{
173172
struct device *dev = &client->dev;
174173
struct zet6223_ts *ts;
@@ -249,7 +248,7 @@ static struct i2c_driver zet6223_driver = {
249248
.name = "zet6223",
250249
.of_match_table = zet6223_of_match,
251250
},
252-
.probe = zet6223_probe,
251+
.probe_new = zet6223_probe,
253252
.id_table = zet6223_id
254253
};
255254
module_i2c_driver(zet6223_driver);

0 commit comments

Comments
 (0)