OSDN Git Service

media: dvb-frontends/helene: Convert to i2c's .probe_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:40:39 +0000 (23:40 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 21 Nov 2022 10:04:20 +0000 (11:04 +0100)
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>
drivers/media/dvb-frontends/helene.c

index 8c1310c..e4bbf6a 100644 (file)
@@ -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);