diff options
author | Jenny TC <jenny.tc@intel.com> | 2014-07-08 02:04:18 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-07-18 17:40:23 -0400 |
commit | 6bb1d272d7c9f5dcfbb790d6aef47d8f82dccbf5 (patch) | |
tree | 77c0fd50a6960576082b0c9d3f7cb13bdac88864 /drivers/power/power_supply_sysfs.c | |
parent | 193dcced049ceacc0cce1a512ad8a1e1a26eedad (diff) |
power_supply: Add inlmt,iterm, min/max temp props
Add new power supply properties for input current, charge termination
current, min and max temperature
POWER_SUPPLY_PROP_TEMP_MIN - minimum operatable temperature
POWER_SUPPLY_PROP_TEMP_MAX - maximum operatable temperature
POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT - input current limit programmed
by charger. Indicates the input current for a charging source.
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT - Charge termination current used
to detect the end of charge condition
Signed-off-by: Jenny TC <jenny.tc@intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 44420d1e9094..750a20275664 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c | |||
@@ -167,6 +167,7 @@ static struct device_attribute power_supply_attrs[] = { | |||
167 | POWER_SUPPLY_ATTR(constant_charge_voltage_max), | 167 | POWER_SUPPLY_ATTR(constant_charge_voltage_max), |
168 | POWER_SUPPLY_ATTR(charge_control_limit), | 168 | POWER_SUPPLY_ATTR(charge_control_limit), |
169 | POWER_SUPPLY_ATTR(charge_control_limit_max), | 169 | POWER_SUPPLY_ATTR(charge_control_limit_max), |
170 | POWER_SUPPLY_ATTR(input_current_limit), | ||
170 | POWER_SUPPLY_ATTR(energy_full_design), | 171 | POWER_SUPPLY_ATTR(energy_full_design), |
171 | POWER_SUPPLY_ATTR(energy_empty_design), | 172 | POWER_SUPPLY_ATTR(energy_empty_design), |
172 | POWER_SUPPLY_ATTR(energy_full), | 173 | POWER_SUPPLY_ATTR(energy_full), |
@@ -178,6 +179,8 @@ static struct device_attribute power_supply_attrs[] = { | |||
178 | POWER_SUPPLY_ATTR(capacity_alert_max), | 179 | POWER_SUPPLY_ATTR(capacity_alert_max), |
179 | POWER_SUPPLY_ATTR(capacity_level), | 180 | POWER_SUPPLY_ATTR(capacity_level), |
180 | POWER_SUPPLY_ATTR(temp), | 181 | POWER_SUPPLY_ATTR(temp), |
182 | POWER_SUPPLY_ATTR(temp_max), | ||
183 | POWER_SUPPLY_ATTR(temp_min), | ||
181 | POWER_SUPPLY_ATTR(temp_alert_min), | 184 | POWER_SUPPLY_ATTR(temp_alert_min), |
182 | POWER_SUPPLY_ATTR(temp_alert_max), | 185 | POWER_SUPPLY_ATTR(temp_alert_max), |
183 | POWER_SUPPLY_ATTR(temp_ambient), | 186 | POWER_SUPPLY_ATTR(temp_ambient), |
@@ -189,6 +192,7 @@ static struct device_attribute power_supply_attrs[] = { | |||
189 | POWER_SUPPLY_ATTR(time_to_full_avg), | 192 | POWER_SUPPLY_ATTR(time_to_full_avg), |
190 | POWER_SUPPLY_ATTR(type), | 193 | POWER_SUPPLY_ATTR(type), |
191 | POWER_SUPPLY_ATTR(scope), | 194 | POWER_SUPPLY_ATTR(scope), |
195 | POWER_SUPPLY_ATTR(charge_term_current), | ||
192 | /* Properties of type `const char *' */ | 196 | /* Properties of type `const char *' */ |
193 | POWER_SUPPLY_ATTR(model_name), | 197 | POWER_SUPPLY_ATTR(model_name), |
194 | POWER_SUPPLY_ATTR(manufacturer), | 198 | POWER_SUPPLY_ATTR(manufacturer), |