diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-05-20 10:30:55 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-07-06 17:56:44 -0700 |
commit | deae576455bbeb84a3a86bc359d322d66dfc841c (patch) | |
tree | acb7f49c8988fa2161f3dd8e8cc6881507f5eab9 /drivers/input | |
parent | 05b8465025466f30300941a16d4bbf53c755c3f1 (diff) | |
download | linux-deae576455bbeb84a3a86bc359d322d66dfc841c.tar.gz |
Input: exc3000 - switch to i2c's probe_new API
Switch to the "new" I2C probe API.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20200520153936.46869-3-sebastian.reichel@collabora.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/exc3000.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/exc3000.c b/drivers/input/touchscreen/exc3000.c index e007e2e8f626..555a14305cd4 100644 --- a/drivers/input/touchscreen/exc3000.c +++ b/drivers/input/touchscreen/exc3000.c @@ -145,8 +145,7 @@ out: return IRQ_HANDLED; } -static int exc3000_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int exc3000_probe(struct i2c_client *client) { struct exc3000_data *data; struct input_dev *input; @@ -210,7 +209,7 @@ static struct i2c_driver exc3000_driver = { .of_match_table = of_match_ptr(exc3000_of_match), }, .id_table = exc3000_id, - .probe = exc3000_probe, + .probe_new = exc3000_probe, }; module_i2c_driver(exc3000_driver); |