mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
media: dvb-frontends/helene: 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
8f17faa5c6
commit
006dfdbb05
|
|
@ -1063,8 +1063,7 @@ struct dvb_frontend *helene_attach(struct dvb_frontend *fe,
|
|||
}
|
||||
EXPORT_SYMBOL(helene_attach);
|
||||
|
||||
static int helene_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int helene_probe(struct i2c_client *client)
|
||||
{
|
||||
struct helene_config *config = client->dev.platform_data;
|
||||
struct dvb_frontend *fe = config->fe;
|
||||
|
|
@ -1111,7 +1110,7 @@ static struct i2c_driver helene_driver = {
|
|||
.driver = {
|
||||
.name = "helene",
|
||||
},
|
||||
.probe = helene_probe,
|
||||
.probe_new = helene_probe,
|
||||
.id_table = helene_id,
|
||||
};
|
||||
module_i2c_driver(helene_driver);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user