misc: isl29020: Convert to i2c's .probe_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:43:47 +0000 (23:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Nov 2022 18:56:07 +0000 (19:56 +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>
Link: https://lore.kernel.org/r/20221118224540.619276-494-uwe@kleine-koenig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/isl29020.c

index c6f2a94f501acc58380ed51fd57bf90df8b1ffa2..3be02093368cf951e5eec2f7bda77d9097f563bc 100644 (file)
@@ -151,8 +151,7 @@ static int als_set_default_config(struct i2c_client *client)
        return 0;
 }
 
-static int  isl29020_probe(struct i2c_client *client,
-                                       const struct i2c_device_id *id)
+static int  isl29020_probe(struct i2c_client *client)
 {
        int res;
 
@@ -215,7 +214,7 @@ static struct i2c_driver isl29020_driver = {
                .name = "isl29020",
                .pm = ISL29020_PM_OPS,
        },
-       .probe = isl29020_probe,
+       .probe_new = isl29020_probe,
        .remove = isl29020_remove,
        .id_table = isl29020_id,
 };