mfd: tps6105x: Convert to i2c's .probe_new()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 18 Nov 2022 22:43:20 +0000 (23:43 +0100)
committerLee Jones <lee@kernel.org>
Wed, 7 Dec 2022 13:27:25 +0000 (13:27 +0000)
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: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-467-uwe@kleine-koenig.org
drivers/mfd/tps6105x.c

index b360568ea6750321fbed2dd550c28af89b8af266..a66cb911998d7bed4b6e4b137b22d05b61180d95 100644 (file)
@@ -117,8 +117,7 @@ static struct tps6105x_platform_data *tps6105x_parse_dt(struct device *dev)
        return pdata;
 }
 
-static int tps6105x_probe(struct i2c_client *client,
-                       const struct i2c_device_id *id)
+static int tps6105x_probe(struct i2c_client *client)
 {
        struct tps6105x                 *tps6105x;
        struct tps6105x_platform_data   *pdata;
@@ -210,7 +209,7 @@ static struct i2c_driver tps6105x_driver = {
                .name   = "tps6105x",
                .of_match_table = tps6105x_of_match,
        },
-       .probe          = tps6105x_probe,
+       .probe_new      = tps6105x_probe,
        .remove         = tps6105x_remove,
        .id_table       = tps6105x_id,
 };