Battery: set POWER_SUPPLY_PROP_ONLINE appropriately.
authorPavan Kumar S <pavan.kumar.s@intel.com>
Tue, 8 May 2012 08:35:57 +0000 (14:05 +0530)
committerDesurmont, David <david.desurmont@intel.com>
Fri, 18 May 2012 14:12:15 +0000 (07:12 -0700)
commitb78e2361dcd47f63d2b94a754bfdf27d5632b4f0
treef3402caa7ebcae3a674245b17333d0167f7562aa
parentaf7f15604c3eccc08c9d40beb182e2729dd3c132
Battery: set POWER_SUPPLY_PROP_ONLINE appropriately.

BZ: 24596

POWER_SUPPLY_PROP_ONLINE property should be set to 1 as long as
the charger is in a healthy state.
This should be the case even if charging is disabled due to some error,
other than those related to the power-supply.

Change-Id: Ia0bb45334321c8161dd85d98bde0a565ed67033a
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Reviewed-on: http://android.intel.com:8080/47775
Reviewed-by: Desurmont, David <david.desurmont@intel.com>
Tested-by: Desurmont, David <david.desurmont@intel.com>
drivers/power/intel_mdf_battery.c
drivers/power/intel_mdf_charger.h