Skip to content

Commit f40ec8b

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: rt5033_battery: 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 d9ac265 commit f40ec8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/power/supply/rt5033_battery.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ static const struct power_supply_desc rt5033_battery_desc = {
112112
.num_properties = ARRAY_SIZE(rt5033_battery_props),
113113
};
114114

115-
static int rt5033_battery_probe(struct i2c_client *client,
116-
const struct i2c_device_id *id)
115+
static int rt5033_battery_probe(struct i2c_client *client)
117116
{
118117
struct i2c_adapter *adapter = client->adapter;
119118
struct power_supply_config psy_cfg = {};
@@ -173,7 +172,7 @@ static struct i2c_driver rt5033_battery_driver = {
173172
.name = "rt5033-battery",
174173
.of_match_table = rt5033_battery_of_match,
175174
},
176-
.probe = rt5033_battery_probe,
175+
.probe_new = rt5033_battery_probe,
177176
.remove = rt5033_battery_remove,
178177
.id_table = rt5033_battery_id,
179178
};

0 commit comments

Comments
 (0)