diff options
author | Ramakrishna Pallala <ramakrishna.pallala@intel.com> | 2012-10-09 18:55:29 +0200 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-11-18 05:21:43 +0100 |
commit | ea2ce92e44dc83b7a69c2aedd9c52bfe7fee1a62 (patch) | |
tree | bd7a548752735e355b88f2864bd24521e79ff865 /drivers | |
parent | generic-adc-battery: Pointer math issue in gab_probe() (diff) | |
download | linux-ea2ce92e44dc83b7a69c2aedd9c52bfe7fee1a62.tar.xz linux-ea2ce92e44dc83b7a69c2aedd9c52bfe7fee1a62.zip |
power_supply: Add support for CHARGE_CONTROL_* attributes
Add support for power supply attributes CHARGE_CONTROL_LIMIT
and CHARGE_CONTROL_LIMIT_MAX.
These new attributes will enable the user space to implement
custom charging algorithms based on platform state.
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 395c2cfa16c0..40fa3b7cae54 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c @@ -164,6 +164,8 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(constant_charge_current_max), POWER_SUPPLY_ATTR(constant_charge_voltage), POWER_SUPPLY_ATTR(constant_charge_voltage_max), + POWER_SUPPLY_ATTR(charge_control_limit), + POWER_SUPPLY_ATTR(charge_control_limit_max), POWER_SUPPLY_ATTR(energy_full_design), POWER_SUPPLY_ATTR(energy_empty_design), POWER_SUPPLY_ATTR(energy_full), |