[ARM] htc_battery: fix power status when on battery
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 12 Apr 2010 21:51:05 +0000 (23:51 +0200)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 12 Apr 2010 21:51:05 +0000 (23:51 +0200)
commitbedb28f753d052b1c8997f0486ca1910df1cf537
treeac659eaad9bd4448945f01b40cebb0a6c5021ae9
parent19fa95c208389f3fe54c44e62d03c2717b6c69ca
[ARM] htc_battery: fix power status when on battery

According to the semantics of the power supply class, the value
POWER_SUPPLY_STATUS_NOT_CHARGING is not supposed to be used when
operating on battery, but rather POWER_SUPPLY_STATUS_DISCHARGING.
POWER_SUPPLY_STATUS_NOT_CHARGING is to be used when either a
battery is not present or the battery is not being charged due
the current loading strategy.
arch/arm/mach-msm/htc_battery.c