Skip to content

Commit 6c38166

Browse files
jwrdegoedesre
authored andcommitted
power: supply: bq24190_charger: Use new extcon_register_notifier_all()
When I submitted the extcon handling I had a patch pending for the extcon sub-system for extcon_register_notifier to take -1 as cable id for listening for all type cable events on an extcon with a single notifier. In the end it was decided to instead add a new extcon_register_notifier_all function for this, switch to using this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Liam Breck <kernel@networkimprov.net> Signed-off-by: Sebastian Reichel <sre@kernel.org>
1 parent ddaa00e commit 6c38166

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/power/supply/bq24190_charger.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,8 +1502,8 @@ static int bq24190_probe(struct i2c_client *client,
15021502
if (bdi->extcon) {
15031503
INIT_DELAYED_WORK(&bdi->extcon_work, bq24190_extcon_work);
15041504
bdi->extcon_nb.notifier_call = bq24190_extcon_event;
1505-
ret = devm_extcon_register_notifier(dev, bdi->extcon, -1,
1506-
&bdi->extcon_nb);
1505+
ret = devm_extcon_register_notifier_all(dev, bdi->extcon,
1506+
&bdi->extcon_nb);
15071507
if (ret) {
15081508
dev_err(dev, "Can't register extcon\n");
15091509
goto out_sysfs;

0 commit comments

Comments
 (0)