aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2014-12-20 01:09:37 +0100
committerZiyan <jaraidaniel@gmail.com>2014-12-20 01:09:37 +0100
commit562ac7861ce59b966e19850f8449f7a038232d2b (patch)
tree51372a4120b890e8ccbf627e159dc5c239e741d4 /drivers/power
parent952bced072339832ec62dfb78ec8179fa6470e5d (diff)
downloadkernel_samsung_tuna-562ac7861ce59b966e19850f8449f7a038232d2b.zip
kernel_samsung_tuna-562ac7861ce59b966e19850f8449f7a038232d2b.tar.gz
kernel_samsung_tuna-562ac7861ce59b966e19850f8449f7a038232d2b.tar.bz2
power: max17040: add support for POWER_SUPPLY_PROP_PRESENT
Change-Id: I7a05757b875bbab57f043d0afa364d475df7771d
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/max17040_battery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/max17040_battery.c b/drivers/power/max17040_battery.c
index 1face88..2b6b131 100644
--- a/drivers/power/max17040_battery.c
+++ b/drivers/power/max17040_battery.c
@@ -102,6 +102,7 @@ static int max17040_get_property(struct power_supply *psy,
val->intval = chip->bat_health;
break;
case POWER_SUPPLY_PROP_ONLINE:
+ case POWER_SUPPLY_PROP_PRESENT:
val->intval = chip->online;
break;
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
@@ -432,6 +433,7 @@ static enum power_supply_property max17040_battery_props[] = {
POWER_SUPPLY_PROP_STATUS,
POWER_SUPPLY_PROP_HEALTH,
POWER_SUPPLY_PROP_ONLINE,
+ POWER_SUPPLY_PROP_PRESENT,
POWER_SUPPLY_PROP_VOLTAGE_NOW,
POWER_SUPPLY_PROP_CAPACITY,
POWER_SUPPLY_PROP_TECHNOLOGY,