Skip to content

Commit 09a77dc

Browse files
Uwe Kleine-Königdtor
authored andcommitted
Input: silead - Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 62ba881 commit 09a77dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/input/touchscreen/silead.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,9 @@ static void silead_disable_regulator(void *arg)
652652
regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators);
653653
}
654654

655-
static int silead_ts_probe(struct i2c_client *client,
656-
const struct i2c_device_id *id)
655+
static int silead_ts_probe(struct i2c_client *client)
657656
{
657+
const struct i2c_device_id *id = i2c_client_get_device_id(client);
658658
struct silead_ts_data *data;
659659
struct device *dev = &client->dev;
660660
int error;
@@ -826,7 +826,7 @@ MODULE_DEVICE_TABLE(of, silead_ts_of_match);
826826
#endif
827827

828828
static struct i2c_driver silead_ts_driver = {
829-
.probe = silead_ts_probe,
829+
.probe_new = silead_ts_probe,
830830
.id_table = silead_ts_id,
831831
.driver = {
832832
.name = SILEAD_TS_NAME,

0 commit comments

Comments
 (0)