Commit bb5b1c64 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones

mfd: tps6105x: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-467-uwe@kleine-koenig.org
parent e6a6b1d6
...@@ -117,8 +117,7 @@ static struct tps6105x_platform_data *tps6105x_parse_dt(struct device *dev) ...@@ -117,8 +117,7 @@ static struct tps6105x_platform_data *tps6105x_parse_dt(struct device *dev)
return pdata; return pdata;
} }
static int tps6105x_probe(struct i2c_client *client, static int tps6105x_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct tps6105x *tps6105x; struct tps6105x *tps6105x;
struct tps6105x_platform_data *pdata; struct tps6105x_platform_data *pdata;
...@@ -210,7 +209,7 @@ static struct i2c_driver tps6105x_driver = { ...@@ -210,7 +209,7 @@ static struct i2c_driver tps6105x_driver = {
.name = "tps6105x", .name = "tps6105x",
.of_match_table = tps6105x_of_match, .of_match_table = tps6105x_of_match,
}, },
.probe = tps6105x_probe, .probe_new = tps6105x_probe,
.remove = tps6105x_remove, .remove = tps6105x_remove,
.id_table = tps6105x_id, .id_table = tps6105x_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment