mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 14:43:54 +08:00
media: tuners/tda18212: 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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
c737ea120d
commit
1d3264c119
@ -173,8 +173,7 @@ static const struct dvb_tuner_ops tda18212_tuner_ops = {
|
|||||||
.get_if_frequency = tda18212_get_if_frequency,
|
.get_if_frequency = tda18212_get_if_frequency,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int tda18212_probe(struct i2c_client *client,
|
static int tda18212_probe(struct i2c_client *client)
|
||||||
const struct i2c_device_id *id)
|
|
||||||
{
|
{
|
||||||
struct tda18212_config *cfg = client->dev.platform_data;
|
struct tda18212_config *cfg = client->dev.platform_data;
|
||||||
struct dvb_frontend *fe = cfg->fe;
|
struct dvb_frontend *fe = cfg->fe;
|
||||||
@ -264,7 +263,7 @@ static struct i2c_driver tda18212_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = "tda18212",
|
.name = "tda18212",
|
||||||
},
|
},
|
||||||
.probe = tda18212_probe,
|
.probe_new = tda18212_probe,
|
||||||
.remove = tda18212_remove,
|
.remove = tda18212_remove,
|
||||||
.id_table = tda18212_id,
|
.id_table = tda18212_id,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user