RFC power: implement platform battery driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | power: implement platform battery driverdrivers/ drivers/ drivers/ +1 more | +138 | 5 replies | |
| 2/2 | gta02: add support for platform_batteryarch/ | +113 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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