power_supply: Add boot and calibration attributes
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Wed, 27 Aug 2014 18:14:08 +0000 (23:44 +0530)
committerSebastian Reichel <sre@kernel.org>
Sat, 6 Sep 2014 19:05:04 +0000 (21:05 +0200)
commita8adcc9012d8502e06ba7b3f966bad8f2c58edc3
treeb48ccc27bb9d4cf11dea461a09ab424e18b7ebfb
parentb1022e247872dc87a6ffd6f9aa6a92e0b67cdf00
power_supply: Add boot and calibration attributes

Usually PMIC's come with coulomb counting mechanism which can be
used to implement a Fuel Gauginig solution in Software itself.
One of key input to these SW Fuel Gauge solutioons is the boot up
parameters like boot voltage and boot current.

This patch adds the VOLTAGE_BOOT and CURRENT_BOOT power supply attributes
to report bootup voltage and current.

This patch also adds CALIBRATE power supply attribute which useful is
for calibrating the battery/coulomb counter.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/power/power_supply_class.txt
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h