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>
This commit is contained in:
Uwe Kleine-König 2022-11-18 23:42:13 +01:00 committed by Hans Verkuil
parent d73a6a4308
commit 7d4833b166
2 changed files with 4 additions and 6 deletions

View File

@ -412,8 +412,7 @@ static const struct i2c_device_id vidtv_demod_i2c_id_table[] = {
}; };
MODULE_DEVICE_TABLE(i2c, vidtv_demod_i2c_id_table); MODULE_DEVICE_TABLE(i2c, vidtv_demod_i2c_id_table);
static int vidtv_demod_i2c_probe(struct i2c_client *client, static int vidtv_demod_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct vidtv_tuner_config *config = client->dev.platform_data; struct vidtv_tuner_config *config = client->dev.platform_data;
struct vidtv_demod_state *state; struct vidtv_demod_state *state;
@ -450,7 +449,7 @@ static struct i2c_driver vidtv_demod_i2c_driver = {
.name = "dvb_vidtv_demod", .name = "dvb_vidtv_demod",
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = vidtv_demod_i2c_probe, .probe_new = vidtv_demod_i2c_probe,
.remove = vidtv_demod_i2c_remove, .remove = vidtv_demod_i2c_remove,
.id_table = vidtv_demod_i2c_id_table, .id_table = vidtv_demod_i2c_id_table,
}; };

View File

@ -390,8 +390,7 @@ static const struct i2c_device_id vidtv_tuner_i2c_id_table[] = {
}; };
MODULE_DEVICE_TABLE(i2c, vidtv_tuner_i2c_id_table); MODULE_DEVICE_TABLE(i2c, vidtv_tuner_i2c_id_table);
static int vidtv_tuner_i2c_probe(struct i2c_client *client, static int vidtv_tuner_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct vidtv_tuner_config *config = client->dev.platform_data; struct vidtv_tuner_config *config = client->dev.platform_data;
struct dvb_frontend *fe = config->fe; struct dvb_frontend *fe = config->fe;
@ -426,7 +425,7 @@ static struct i2c_driver vidtv_tuner_i2c_driver = {
.name = "dvb_vidtv_tuner", .name = "dvb_vidtv_tuner",
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = vidtv_tuner_i2c_probe, .probe_new = vidtv_tuner_i2c_probe,
.remove = vidtv_tuner_i2c_remove, .remove = vidtv_tuner_i2c_remove,
.id_table = vidtv_tuner_i2c_id_table, .id_table = vidtv_tuner_i2c_id_table,
}; };