From: Hans de Goede <hdegoede@redhat.com>
To: Sebastian Reichel <sre@kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>,
Liam Breck <liam@networkimprov.net>,
Tony Lindgren <tony@atomide.com>,
linux-pm@vger.kernel.org
Subject: [PATCH v4 1/3] power: supply: bq24190_charger: Use new extcon_register_notifier_all()
Date: Wed, 12 Apr 2017 20:18:06 +0200 [thread overview]
Message-ID: <20170412181808.31768-2-hdegoede@redhat.com> (raw)
In-Reply-To: <20170412181808.31768-1-hdegoede@redhat.com>
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>
---
Changes in v4:
-This is a new patch in v4 of this patch-set
---
drivers/power/supply/bq24190_charger.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
index 7c893c0..bd9e5c3 100644
--- a/drivers/power/supply/bq24190_charger.c
+++ b/drivers/power/supply/bq24190_charger.c
@@ -1502,8 +1502,8 @@ static int bq24190_probe(struct i2c_client *client,
if (bdi->extcon) {
INIT_DELAYED_WORK(&bdi->extcon_work, bq24190_extcon_work);
bdi->extcon_nb.notifier_call = bq24190_extcon_event;
- ret = devm_extcon_register_notifier(dev, bdi->extcon, -1,
- &bdi->extcon_nb);
+ ret = devm_extcon_register_notifier_all(dev, bdi->extcon,
+ &bdi->extcon_nb);
if (ret) {
dev_err(dev, "Can't register extcon\n");
goto out_sysfs;
--
2.9.3
next prev parent reply other threads:[~2017-04-12 18:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 18:18 [PATCH v4 0/3] power: supply: bq24190_charger: Pending patches Hans de Goede
2017-04-12 18:18 ` Hans de Goede [this message]
2017-04-12 22:28 ` [PATCH v4 1/3] power: supply: bq24190_charger: Use new extcon_register_notifier_all() Liam Breck
2017-04-12 18:18 ` [PATCH v4 2/3] power: supply: bq24190_charger: Do not reset the charger on probe by default Hans de Goede
2017-04-12 23:06 ` Liam Breck
2017-04-13 11:54 ` Hans de Goede
2017-04-14 10:34 ` Liam Breck
2017-04-14 12:44 ` Hans de Goede
2017-04-14 13:25 ` Liam Breck
2017-04-14 13:33 ` Hans de Goede
2017-04-12 18:18 ` [PATCH v4 3/3] power: supply: bq24190_charger: Make battery iface registraton conditional Hans de Goede
2017-04-12 23:21 ` Liam Breck
2017-04-13 11:54 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170412181808.31768-2-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=liam@networkimprov.net \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).