All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] power: sbs-battery fixup gpio detect irq handling
@ 2016-07-25  2:42 Phil Reid
  2016-07-25  2:42 ` [PATCH v2 1/4] power: sbs-battery: Use devm_kzalloc to alloc data Phil Reid
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Phil Reid @ 2016-07-25  2:42 UTC (permalink / raw)
  To: sre, dbaryshkov, dwmw2, linux-pm; +Cc: Phil Reid

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?

Changes from V1:
- Fix sbs_of_populate_pdata params for non OF builds.
- Fix title of summary message.

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 | 147 ++++++++++++++++++++------------------------
 1 file changed, 65 insertions(+), 82 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-08-16 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-25  2:42 [PATCH v2 0/4] power: sbs-battery fixup gpio detect irq handling Phil Reid
2016-07-25  2:42 ` [PATCH v2 1/4] power: sbs-battery: Use devm_kzalloc to alloc data Phil Reid
2016-07-25  2:42 ` [PATCH v2 2/4] power: sbs-battery: Request threaded irq and fix dev callback cookie Phil Reid
2016-07-25  2:42 ` [PATCH v2 3/4] power: sbs-battery: Use devm_power_supply_register Phil Reid
2016-07-25  2:43 ` [PATCH v2 4/4] power: sbs-battery: Use gpio_desc and sleeping calls for battery detect Phil Reid
2016-07-30 23:37   ` kbuild test robot
2016-07-31  0:14   ` kbuild test robot
2016-07-31  1:28   ` kbuild test robot
2016-08-15 21:08   ` Sebastian Reichel
2016-08-16  9:35     ` Phil Reid
2016-08-16 10:26       ` Sebastian Reichel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.