Skip to content

Commit 922bde5

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: z2_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 8a4f891 commit 922bde5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/power/supply/z2_battery.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ static int z2_batt_ps_init(struct z2_charger *charger, int props)
176176
return 0;
177177
}
178178

179-
static int z2_batt_probe(struct i2c_client *client,
180-
const struct i2c_device_id *id)
179+
static int z2_batt_probe(struct i2c_client *client)
181180
{
182181
int ret = 0;
183182
int props = 1; /* POWER_SUPPLY_PROP_PRESENT */
@@ -306,7 +305,7 @@ static struct i2c_driver z2_batt_driver = {
306305
.name = "z2-battery",
307306
.pm = Z2_BATTERY_PM_OPS
308307
},
309-
.probe = z2_batt_probe,
308+
.probe_new = z2_batt_probe,
310309
.remove = z2_batt_remove,
311310
.id_table = z2_batt_id,
312311
};

0 commit comments

Comments
 (0)