olpc-battery: Add VOLTAGE_MAX_DESIGN property
authorRichard A. Smith <richard@laptop.org>
Sun, 15 Jul 2012 21:43:25 +0000 (22:43 +0100)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 16 Jul 2012 08:39:12 +0000 (01:39 -0700)
commit5619d0ba97cd336a100121cf8f2968c4b1f6c848
tree03b3a6d79036f5ad4474b1ce9d0ee8ecb1eabf76
parentc4727555d0bb2242047395dbcec253ea9d08a3b7
olpc-battery: Add VOLTAGE_MAX_DESIGN property

upowerd wants to compute the energy in the battery by looking at this
property.  If it's not present then it falls back on using the reported
voltage of the battery at time upowerd loads.  That's close but also
means that every time you boot you get a slightly different energy
capacity.

Adding the VOLTAGE_MAX_DESIGN property allows upowerd to compute the
same energy every time.

Signed-off-by: Richard A. Smith <richard@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/olpc_battery.c