aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/gta01_battery.c
AgeCommit message (Collapse)Author
2009-08-02gta01_battery: add charge_{now,full} propertiesPaul Fertser
Some userspace (notably Enlightment's batget) ignores "capacity" completely if there're no other properties. Expose a fake value (850mAh, typical for BL-5C) to make them happy. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-08-02gta01_battery: generalise the driver, add capacity estimationPaul Fertser
Check if machine-specific hooks exist before calling, this allows to use this driver with gta02 or any other device that is able to provide battery voltage readings. Report an estimate of capacity percentage left, based on discharge curves. Strictly speaking, this is a violation of power_supply class specs but since this is the only driver for dumb batteries and userspace lacks any library to do the estimation itself, we have to stuff it here. Please keep in mind that this estimation is by no means accurate, usually cell phones have only 5 bars to represent charge status. Credit goes to Joerg Reisenweber and SpeedEvil for helping with gathering and analysing the data. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-08-02gta01_battery: fix unloading bugPaul Fertser
Driver data must be properly registered after allocation Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-04-28GTA01: Add "present" property to power_supplyNelson Castillo
Small patch to add /sys/class/power_supply/battery/present. You must not run a GTA01 without battery thus it is always 1. Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
2009-04-14Too many info messages for apm battery supportTim Niemeyer
Changing dev_info => dev_dbg. Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-01-28Subject: pcf50606_rebase_changes,patchBalaji Rao
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=938eddf17625cce0307f7612a3ea2560384e2384 pcf50606_rebase_changes,patch This patch brings into andy-tracking all changes related to pcf50606 from old balaji-tracking.