Skip to content

Commit ef3f6e0

Browse files
Uwe Kleine-Königsre
authored andcommitted
power: supply: sbs: 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 2adfc43 commit ef3f6e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/power/supply/sbs-charger.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ static const struct power_supply_desc sbs_desc = {
162162
.get_property = sbs_get_property,
163163
};
164164

165-
static int sbs_probe(struct i2c_client *client,
166-
const struct i2c_device_id *id)
165+
static int sbs_probe(struct i2c_client *client)
167166
{
168167
struct power_supply_config psy_cfg = {};
169168
struct sbs_info *chip;
@@ -241,7 +240,7 @@ static const struct i2c_device_id sbs_id[] = {
241240
MODULE_DEVICE_TABLE(i2c, sbs_id);
242241

243242
static struct i2c_driver sbs_driver = {
244-
.probe = sbs_probe,
243+
.probe_new = sbs_probe,
245244
.id_table = sbs_id,
246245
.driver = {
247246
.name = "sbs-charger",

0 commit comments

Comments
 (0)