]> git.karo-electronics.de Git - linux-beck.git/commit
power_supply: Add voltage_ocv property and use it for max17042 driver
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Tue, 10 Apr 2012 10:51:20 +0000 (16:21 +0530)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 5 May 2012 03:44:29 +0000 (20:44 -0700)
commita2ebfe2fc6e088a70d06cd15a5bc9bcb621cc195
treee9c03e1cbcb7b98f6049c17bb6000ae5218ae754
parent48e41c70c10f10541d922fc67e7952f06ad59d9a
power_supply: Add voltage_ocv property and use it for max17042 driver

This adds a new sysfs file called 'voltage_ocv' which gives the
Open Circuit Voltage of the battery.

This property can be used for platform shutdown policies and
can be useful for initial capacity estimations.

Note: This patch is generated against linux-next branch.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Documentation/power/power_supply_class.txt
drivers/power/max17042_battery.c
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h