Skip to content

Commit 8a4f891

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: ucs1002: 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: Uwe Kleine-König <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 6d43a4b commit 8a4f891

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/power/supply/ucs1002_power.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,7 @@ static const struct regulator_desc ucs1002_regulator_descriptor = {
532532
.n_voltages = 1,
533533
};
534534

535-
static int ucs1002_probe(struct i2c_client *client,
536-
const struct i2c_device_id *dev_id)
535+
static int ucs1002_probe(struct i2c_client *client)
537536
{
538537
struct device *dev = &client->dev;
539538
struct power_supply_config charger_config = {};
@@ -681,7 +680,7 @@ static struct i2c_driver ucs1002_driver = {
681680
.name = "ucs1002",
682681
.of_match_table = ucs1002_of_match,
683682
},
684-
.probe = ucs1002_probe,
683+
.probe_new = ucs1002_probe,
685684
};
686685
module_i2c_driver(ucs1002_driver);
687686

0 commit comments

Comments
 (0)