Commit 4ed24a64 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Hans Verkuil

media: i2c/ad5820: 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>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 49a7233f
...@@ -290,8 +290,7 @@ static int __maybe_unused ad5820_resume(struct device *dev) ...@@ -290,8 +290,7 @@ static int __maybe_unused ad5820_resume(struct device *dev)
return ad5820_power_on(coil, true); return ad5820_power_on(coil, true);
} }
static int ad5820_probe(struct i2c_client *client, static int ad5820_probe(struct i2c_client *client)
const struct i2c_device_id *devid)
{ {
struct ad5820_device *coil; struct ad5820_device *coil;
int ret; int ret;
...@@ -377,7 +376,7 @@ static struct i2c_driver ad5820_i2c_driver = { ...@@ -377,7 +376,7 @@ static struct i2c_driver ad5820_i2c_driver = {
.pm = &ad5820_pm, .pm = &ad5820_pm,
.of_match_table = ad5820_of_table, .of_match_table = ad5820_of_table,
}, },
.probe = ad5820_probe, .probe_new = ad5820_probe,
.remove = ad5820_remove, .remove = ad5820_remove,
.id_table = ad5820_id_table, .id_table = ad5820_id_table,
}; };
......
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