Skip to content

RFC power: implement platform battery driver

Paul Fertser lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2power: implement platform battery driverdrivers/power/Kconfig drivers/power/Makefile drivers/power/platform_battery.c +1 more+138 -05 replies
2/2gta02: add support for platform_batteryarch/arm/mach-s3c2442/mach-gta02.c+113 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] power: implement platform battery driver

Hi,

This is a simple generic implementation of a battery driver that essentially gets all the information from platform-specific functions.

Tested on openmoko gta02 device but it looks like it can be useful for other targets as well.

With such a simple driver it's quite easy for almost anybody to have an opinion about an ideal implementation so come on, do not hesistate, i really need your constructive feedback ;) One of the most obvious points is the clumsy way to match entries in the properties arrays with the callbacks. I did so to avoid an extra alloc + copy stuff but if you battery guys find this really unacceptable, well, i'll do it the way you like :)

Pavel, i saw you posting spitz battery driver and thought you might find this useful.

[RFC PATCH 1/2] power: implement platform battery driver [RFC PATCH 2/2] gta02: add support for platform_battery