Skip to content

Commit 56232e9

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: zforce_ts - 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 f8684ea commit 56232e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/zforce_ts.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,7 @@ static struct zforce_ts_platdata *zforce_parse_dt(struct device *dev)
732732
return pdata;
733733
}
734734

735-
static int zforce_probe(struct i2c_client *client,
736-
const struct i2c_device_id *id)
735+
static int zforce_probe(struct i2c_client *client)
737736
{
738737
const struct zforce_ts_platdata *pdata = dev_get_platdata(&client->dev);
739738
struct zforce_ts *ts;
@@ -945,7 +944,7 @@ static struct i2c_driver zforce_driver = {
945944
.pm = &zforce_pm_ops,
946945
.of_match_table = of_match_ptr(zforce_dt_idtable),
947946
},
948-
.probe = zforce_probe,
947+
.probe_new = zforce_probe,
949948
.id_table = zforce_idtable,
950949
};
951950

0 commit comments

Comments
 (0)