提交 dd271dd9 编写于 作者: U Uwe Kleine-König 提交者: Dmitry Torokhov

Input: iqs5xx - 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: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: NJeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20221118224540.619276-248-uwe@kleine-koenig.orgSigned-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 19a28e79
...@@ -1019,8 +1019,7 @@ static int __maybe_unused iqs5xx_resume(struct device *dev) ...@@ -1019,8 +1019,7 @@ static int __maybe_unused iqs5xx_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(iqs5xx_pm, iqs5xx_suspend, iqs5xx_resume); static SIMPLE_DEV_PM_OPS(iqs5xx_pm, iqs5xx_suspend, iqs5xx_resume);
static int iqs5xx_probe(struct i2c_client *client, static int iqs5xx_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct iqs5xx_private *iqs5xx; struct iqs5xx_private *iqs5xx;
int error; int error;
...@@ -1094,7 +1093,7 @@ static struct i2c_driver iqs5xx_i2c_driver = { ...@@ -1094,7 +1093,7 @@ static struct i2c_driver iqs5xx_i2c_driver = {
.pm = &iqs5xx_pm, .pm = &iqs5xx_pm,
}, },
.id_table = iqs5xx_id, .id_table = iqs5xx_id,
.probe = iqs5xx_probe, .probe_new = iqs5xx_probe,
}; };
module_i2c_driver(iqs5xx_i2c_driver); module_i2c_driver(iqs5xx_i2c_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册