Skip to content

Commit 6440fab

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/input/touchscreen/sis_i2c.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ static void sis_ts_reset(struct sis_ts_data *ts)
296296
}
297297
}
298298

299-
static int sis_ts_probe(struct i2c_client *client,
300-
const struct i2c_device_id *id)
299+
static int sis_ts_probe(struct i2c_client *client)
301300
{
302301
struct sis_ts_data *ts;
303302
struct input_dev *input;
@@ -394,7 +393,7 @@ static struct i2c_driver sis_ts_driver = {
394393
.name = SIS_I2C_NAME,
395394
.of_match_table = of_match_ptr(sis_ts_dt_ids),
396395
},
397-
.probe = sis_ts_probe,
396+
.probe_new = sis_ts_probe,
398397
.id_table = sis_ts_id,
399398
};
400399
module_i2c_driver(sis_ts_driver);

0 commit comments

Comments
 (0)