power: Add property CHARGE_COUNTER_EXT and 64-bit precision properties
authorTodd Poynor <toddpoynor@google.com>
Thu, 12 Dec 2013 23:59:09 +0000 (15:59 -0800)
committerRuchi Kandoi <kandoiruchi@google.com>
Tue, 17 Jun 2014 02:18:07 +0000 (02:18 +0000)
commit8ee650bdfc5bd74be0bb839d53169e4365a919dd
tree0d2cd209d505219b9ff72365cf79e0b898ff153f
parent36cafd21673f7a50bc1c29b25530b5b715ec36bd
power: Add property CHARGE_COUNTER_EXT and 64-bit precision properties

Add POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT that stores accumulated charge
in nAh units as a signed 64-bit value.

Add generic support for signed 64-bit property values.

Change-Id: I2bd34b1e95ffba24e7bfef81f398f22bd2aaf05e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h