diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-18 23:38:50 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-12-02 23:53:41 +0100 |
commit | 0985fe754d751de97803531319f4380bf58e2682 (patch) | |
tree | f542853fae2f6c8967e5f728eb3c4ddc9ce9b082 /drivers/input/keyboard | |
parent | Input: dlink-dir685-touchkeys - Convert to i2c's .probe_new() (diff) | |
download | linux-0985fe754d751de97803531319f4380bf58e2682.tar.xz linux-0985fe754d751de97803531319f4380bf58e2682.zip |
Input: lm8323 - 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 <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-197-uwe@kleine-koenig.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r-- | drivers/input/keyboard/lm8323.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index 407dd2ad6302..4846eccb0a93 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c @@ -615,8 +615,7 @@ static ssize_t lm8323_set_disable(struct device *dev, } static DEVICE_ATTR(disable_kp, 0644, lm8323_show_disable, lm8323_set_disable); -static int lm8323_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lm8323_probe(struct i2c_client *client) { struct lm8323_platform_data *pdata = dev_get_platdata(&client->dev); struct input_dev *idev; @@ -829,7 +828,7 @@ static struct i2c_driver lm8323_i2c_driver = { .name = "lm8323", .pm = &lm8323_pm_ops, }, - .probe = lm8323_probe, + .probe_new = lm8323_probe, .remove = lm8323_remove, .id_table = lm8323_id, }; |