OSDN Git Service

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

index 86b0d59..cc07e96 100644 (file)
@@ -1144,8 +1144,7 @@ static const struct dvb_frontend_ops si2165_ops = {
        .read_ber          = si2165_read_ber,
 };
 
-static int si2165_probe(struct i2c_client *client,
-                       const struct i2c_device_id *id)
+static int si2165_probe(struct i2c_client *client)
 {
        struct si2165_state *state = NULL;
        struct si2165_platform_data *pdata = client->dev.platform_data;
@@ -1293,7 +1292,7 @@ static struct i2c_driver si2165_driver = {
        .driver = {
                .name   = "si2165",
        },
-       .probe          = si2165_probe,
+       .probe_new      = si2165_probe,
        .remove         = si2165_remove,
        .id_table       = si2165_id_table,
 };