summaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vidtv/vidtv_tuner.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-11-19 01:42:13 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-11-21 13:04:42 +0300
commit7d4833b166021047b00bcc138572ddfa5c1a81e6 (patch)
treefce0d174764c8ae6095a823f8f88352c6baba3c5 /drivers/media/test-drivers/vidtv/vidtv_tuner.c
parentd73a6a4308c04bc4a9be993511638ec19b923285 (diff)
downloadlinux-7d4833b166021047b00bcc138572ddfa5c1a81e6.tar.xz
media: vidtv: Convert to i2c's .probe_new()
The probe functions 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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/test-drivers/vidtv/vidtv_tuner.c')
-rw-r--r--drivers/media/test-drivers/vidtv/vidtv_tuner.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_tuner.c b/drivers/media/test-drivers/vidtv/vidtv_tuner.c
index aabc97ed736b..55a4387f3854 100644
--- a/drivers/media/test-drivers/vidtv/vidtv_tuner.c
+++ b/drivers/media/test-drivers/vidtv/vidtv_tuner.c
@@ -390,8 +390,7 @@ static const struct i2c_device_id vidtv_tuner_i2c_id_table[] = {
};
MODULE_DEVICE_TABLE(i2c, vidtv_tuner_i2c_id_table);
-static int vidtv_tuner_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int vidtv_tuner_i2c_probe(struct i2c_client *client)
{
struct vidtv_tuner_config *config = client->dev.platform_data;
struct dvb_frontend *fe = config->fe;
@@ -426,7 +425,7 @@ static struct i2c_driver vidtv_tuner_i2c_driver = {
.name = "dvb_vidtv_tuner",
.suppress_bind_attrs = true,
},
- .probe = vidtv_tuner_i2c_probe,
+ .probe_new = vidtv_tuner_i2c_probe,
.remove = vidtv_tuner_i2c_remove,
.id_table = vidtv_tuner_i2c_id_table,
};