diff options
author | Ramakrishna Pallala <ramakrishna.pallala@intel.com> | 2012-08-22 21:20:21 -0400 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-08-22 22:56:37 -0400 |
commit | b1b56872be3b36af19313bf0953b1361c36b4a98 (patch) | |
tree | 2e6fde9da5401cad5e367a3ac95587eb25a01908 /drivers/power/power_supply_sysfs.c | |
parent | deacc4fe57794f80ad4449c7cea611921c2d0420 (diff) |
power_supply: Add new power supply AUTHENTIC property
It is possible that users can use non-standard chargers or use invalid
batteries especially with mobile devices.
This patch adds a new power supply property called 'AUTHENTIC' to
indicate this to the user(user space).
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 1d96614a17a4..be34a6d4664d 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c | |||
@@ -138,6 +138,7 @@ static struct device_attribute power_supply_attrs[] = { | |||
138 | POWER_SUPPLY_ATTR(health), | 138 | POWER_SUPPLY_ATTR(health), |
139 | POWER_SUPPLY_ATTR(present), | 139 | POWER_SUPPLY_ATTR(present), |
140 | POWER_SUPPLY_ATTR(online), | 140 | POWER_SUPPLY_ATTR(online), |
141 | POWER_SUPPLY_ATTR(authentic), | ||
141 | POWER_SUPPLY_ATTR(technology), | 142 | POWER_SUPPLY_ATTR(technology), |
142 | POWER_SUPPLY_ATTR(cycle_count), | 143 | POWER_SUPPLY_ATTR(cycle_count), |
143 | POWER_SUPPLY_ATTR(voltage_max), | 144 | POWER_SUPPLY_ATTR(voltage_max), |