mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
media: dvb-frontends/dvb-pll: Convert to i2c's .probe_new()
.probe_new() doesn't get the i2c_device_id * parameter, so determine that explicitly in the probe function. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
6599e683db
commit
505548dc70
@ -870,8 +870,9 @@ EXPORT_SYMBOL(dvb_pll_attach);
|
||||
|
||||
|
||||
static int
|
||||
dvb_pll_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||
dvb_pll_probe(struct i2c_client *client)
|
||||
{
|
||||
const struct i2c_device_id *id = i2c_client_get_device_id(client);
|
||||
struct dvb_pll_config *cfg;
|
||||
struct dvb_frontend *fe;
|
||||
unsigned int desc_id;
|
||||
@ -941,7 +942,7 @@ static struct i2c_driver dvb_pll_driver = {
|
||||
.driver = {
|
||||
.name = "dvb_pll",
|
||||
},
|
||||
.probe = dvb_pll_probe,
|
||||
.probe_new = dvb_pll_probe,
|
||||
.remove = dvb_pll_remove,
|
||||
.id_table = dvb_pll_id,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user