diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-13 00:13:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-13 00:13:06 -0500 |
commit | 53ff7095cce683813be075379160b8e4e6ea8b85 (patch) | |
tree | 723754032e6eb42af3f555946b9786900a8f659c /drivers | |
parent | bb7d3f24c71e528989501617651b669fbed798cb (diff) | |
parent | d54e7929d8073b0fff8af16f8ff6ebbba6fc4154 (diff) |
Merge git://git.infradead.org/battery-2.6
* git://git.infradead.org/battery-2.6:
pmu_battery: Fix battery full reporting
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/pmu_battery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/pmu_battery.c b/drivers/power/pmu_battery.c index 9346a862f1f2..9c87ad564803 100644 --- a/drivers/power/pmu_battery.c +++ b/drivers/power/pmu_battery.c | |||
@@ -89,6 +89,8 @@ static int pmu_bat_get_property(struct power_supply *psy, | |||
89 | case POWER_SUPPLY_PROP_STATUS: | 89 | case POWER_SUPPLY_PROP_STATUS: |
90 | if (pbi->flags & PMU_BATT_CHARGING) | 90 | if (pbi->flags & PMU_BATT_CHARGING) |
91 | val->intval = POWER_SUPPLY_STATUS_CHARGING; | 91 | val->intval = POWER_SUPPLY_STATUS_CHARGING; |
92 | else if (pmu_power_flags & PMU_PWR_AC_PRESENT) | ||
93 | val->intval = POWER_SUPPLY_STATUS_FULL; | ||
92 | else | 94 | else |
93 | val->intval = POWER_SUPPLY_STATUS_DISCHARGING; | 95 | val->intval = POWER_SUPPLY_STATUS_DISCHARGING; |
94 | break; | 96 | break; |