From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 7/7] mfd: ab8500: Decrement the power supply's device reference counter
Date: Fri, 17 Oct 2014 09:50:08 +0200 [thread overview]
Message-ID: <20141017075008.GC22725@lee--X1> (raw)
In-Reply-To: <1413463274.18828.1.camel@AMDC1943>
On Thu, 16 Oct 2014, Krzysztof Kozlowski wrote:
> On czw, 2014-10-16 at 14:29 +0200, Lee Jones wrote:
> > On Thu, 16 Oct 2014, Krzysztof Kozlowski wrote:
> >
> > > Use power_supply_put() to decrement the power supply's device reference
> > > counter.
> > >
> > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> > > Acked-by: Pavel Machek <pavel@ucw.cz>
> >
> > I already Acked this.
>
> I think you acked mfd change in my first patchset
> (power_supply_get_property()):
> [PATCH 5/8] mfd: ab8500: Use power_supply_*() API for accessing
> function attrs
>
> ... and this is my second patchset with other API (power_supply_put).
Maybe my reply wasn't sent properly (the WiFi at this conference has
been pretty shakey at points).
Anyway ... Acked-by: Lee Jones <lee.jones@linaro.org>
> > > ---
> > > drivers/mfd/ab8500-sysctrl.c | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> > > diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c
> > > index 93b2d2c32ca3..d05a5719cfc4 100644
> > > --- a/drivers/mfd/ab8500-sysctrl.c
> > > +++ b/drivers/mfd/ab8500-sysctrl.c
> > > @@ -51,6 +51,7 @@ static void ab8500_power_off(void)
> > >
> > > ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE,
> > > &val);
> > > + power_supply_put(psy);
> > >
> > > if (!ret && val.intval) {
> > > charger_present = true;
> > > @@ -73,6 +74,7 @@ static void ab8500_power_off(void)
> > > pss[i]);
> > > machine_restart("charging");
> > > }
> > > + power_supply_put(psy);
> > > }
> > >
> > > shutdown:
> >
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
prev parent reply other threads:[~2014-10-17 7:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-16 7:42 [PATCH v2 0/7] power_supply: Decrement the device reference counter Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 1/7] power_supply: Add power_supply_put for decrementing " Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 2/7] power: charger-manager: Decrement the power supply's " Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 3/7] x86/olpc/xo1/sci: Use newly added power_supply_put API Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 4/7] x86/olpc/xo15/sci: " Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 5/7] power: 88pm860x_charger: Decrement the power supply's device reference counter Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 6/7] power: bq2415x_charger: " Krzysztof Kozlowski
2014-10-16 7:42 ` [PATCH v2 7/7] mfd: ab8500: " Krzysztof Kozlowski
2014-10-16 12:29 ` Lee Jones
2014-10-16 12:41 ` Krzysztof Kozlowski
2014-10-17 7:50 ` Lee Jones [this message]
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=20141017075008.GC22725@lee--X1 \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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).