Commit 0985fe75 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Dmitry Torokhov

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221118224540.619276-197-uwe@kleine-koenig.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 7d7cc76f
...@@ -615,8 +615,7 @@ static ssize_t lm8323_set_disable(struct device *dev, ...@@ -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 DEVICE_ATTR(disable_kp, 0644, lm8323_show_disable, lm8323_set_disable);
static int lm8323_probe(struct i2c_client *client, static int lm8323_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct lm8323_platform_data *pdata = dev_get_platdata(&client->dev); struct lm8323_platform_data *pdata = dev_get_platdata(&client->dev);
struct input_dev *idev; struct input_dev *idev;
...@@ -829,7 +828,7 @@ static struct i2c_driver lm8323_i2c_driver = { ...@@ -829,7 +828,7 @@ static struct i2c_driver lm8323_i2c_driver = {
.name = "lm8323", .name = "lm8323",
.pm = &lm8323_pm_ops, .pm = &lm8323_pm_ops,
}, },
.probe = lm8323_probe, .probe_new = lm8323_probe,
.remove = lm8323_remove, .remove = lm8323_remove,
.id_table = lm8323_id, .id_table = lm8323_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment