Commit 6c381663 authored by Hans de Goede's avatar Hans de Goede Committed by Sebastian Reichel

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: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarLiam Breck <kernel@networkimprov.net>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent ddaa00ee
...@@ -1502,8 +1502,8 @@ static int bq24190_probe(struct i2c_client *client, ...@@ -1502,8 +1502,8 @@ static int bq24190_probe(struct i2c_client *client,
if (bdi->extcon) { if (bdi->extcon) {
INIT_DELAYED_WORK(&bdi->extcon_work, bq24190_extcon_work); INIT_DELAYED_WORK(&bdi->extcon_work, bq24190_extcon_work);
bdi->extcon_nb.notifier_call = bq24190_extcon_event; bdi->extcon_nb.notifier_call = bq24190_extcon_event;
ret = devm_extcon_register_notifier(dev, bdi->extcon, -1, ret = devm_extcon_register_notifier_all(dev, bdi->extcon,
&bdi->extcon_nb); &bdi->extcon_nb);
if (ret) { if (ret) {
dev_err(dev, "Can't register extcon\n"); dev_err(dev, "Can't register extcon\n");
goto out_sysfs; goto out_sysfs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment