From: Phil Reid <preid@electromag.com.au>
To: sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org,
linux-pm@vger.kernel.org
Cc: Phil Reid <preid@electromag.com.au>
Subject: [PATCH 0/4] power: sbs-manager fixup gpio detect irq handling
Date: Fri, 22 Jul 2016 16:42:34 +0800 [thread overview]
Message-ID: <1469176958-69804-1-git-send-email-preid@electromag.com.au> (raw)
This series switches the driver to using the devm series of calls for
resource allocation.
Also the gpio detect and irq handling had a number of issue:
- gpio detection can now be used with gpios that don't support irqs.
- Fixup irq call back data, previously null pointer was used.
I've attempted to maintain the drivers platform_data interface. There doesn't
look to be a user of this and given the errors in there I doubt it's being used
by anyone. Code would be a bit cleaner if this could go and just rely on the
device tree. Comments?
Phil Reid (4):
power: sbs-battery: Use devm_kzalloc to alloc data
power: sbs-battery: Request threaded irq and fix dev callback cookie
power: sbs-battery: Use devm_power_supply_register
power: sbs-battery: Use gpio_desc and sleeping calls for battery
detect
drivers/power/sbs-battery.c | 143 +++++++++++++++++++-------------------------
1 file changed, 63 insertions(+), 80 deletions(-)
--
1.8.3.1
next reply other threads:[~2016-07-22 8:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-22 8:42 Phil Reid [this message]
2016-07-22 8:42 ` [PATCH 1/4] power: sbs-battery: Use devm_kzalloc to alloc data Phil Reid
2016-07-22 8:42 ` [PATCH 2/4] power: sbs-battery: Request threaded irq and fix dev callback cookie Phil Reid
2016-07-22 8:42 ` [PATCH 3/4] power: sbs-battery: Use devm_power_supply_register Phil Reid
2016-07-22 8:42 ` [PATCH 4/4] power: sbs-battery: Use gpio_desc and sleeping calls for battery detect Phil Reid
2016-07-22 10:40 ` kbuild test robot
2016-07-22 14:18 ` Phil Reid
2016-07-31 3:20 ` kbuild test robot
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=1469176958-69804-1-git-send-email-preid@electromag.com.au \
--to=preid@electromag.com.au \
--cc=dbaryshkov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.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