]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/power/pmu_battery.c
Merge branches 'amd-iommu/fixes' and 'dma-debug/fixes' into iommu/fixes
[karo-tx-linux.git] / drivers / power / pmu_battery.c
index 9346a862f1f2609bd5bdf834357c65d0bf24803e..9c87ad564803b96f0b915b75edaf2ae48fd7bfaf 100644 (file)
@@ -89,6 +89,8 @@ static int pmu_bat_get_property(struct power_supply *psy,
        case POWER_SUPPLY_PROP_STATUS:
                if (pbi->flags & PMU_BATT_CHARGING)
                        val->intval = POWER_SUPPLY_STATUS_CHARGING;
+               else if (pmu_power_flags & PMU_PWR_AC_PRESENT)
+                       val->intval = POWER_SUPPLY_STATUS_FULL;
                else
                        val->intval = POWER_SUPPLY_STATUS_DISCHARGING;
                break;