diff options
author | Syed Rafiuddin <srafiuddin@nvidia.com> | 2013-02-07 14:42:53 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-02-22 14:44:05 -0800 |
commit | 188e7195ddcf3ff11a18b1c2e75dd92b9935858a (patch) | |
tree | 929dd5f62030efdc288530d1fb87656266bbe5ea /drivers/power | |
parent | 477b3112d297ff3948a86c08fc5dd8e2d512c6e1 (diff) |
power: max17048: add TECHNOLOGY property
Additon of POWER_SUPPLY_PROP_TECHNOLOGY property
to display technology of the battery
Bug 1232370
Change-Id: If4cd2e1f56fe05168713e4b395e8ddfb337db547
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/198323
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/max17048_battery.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/power/max17048_battery.c b/drivers/power/max17048_battery.c index fb8af3f6027d..278bd24d4c06 100644 --- a/drivers/power/max17048_battery.c +++ b/drivers/power/max17048_battery.c @@ -155,6 +155,9 @@ static int max17048_get_property(struct power_supply *psy, struct max17048_chip, battery); switch (psp) { + case POWER_SUPPLY_PROP_TECHNOLOGY: + val->intval = POWER_SUPPLY_TECHNOLOGY_LION; + break; case POWER_SUPPLY_PROP_STATUS: val->intval = chip->status; break; @@ -298,6 +301,7 @@ void max17048_battery_status(int status, EXPORT_SYMBOL_GPL(max17048_battery_status); static enum power_supply_property max17048_battery_props[] = { + POWER_SUPPLY_PROP_TECHNOLOGY, POWER_SUPPLY_PROP_STATUS, POWER_SUPPLY_PROP_VOLTAGE_NOW, POWER_SUPPLY_PROP_CAPACITY, |