power: qpnp-smbcharger: Read the hi-power property

Read the hi-power power-supply property in the
get_property callback to avoid warnings from the
power-supply framework.

Change-Id: I5a9bb9b625ceb308afab915db9ac784a567ffbfb
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
This commit is contained in:
Anirudh Ghayal 2016-01-19 12:27:25 +05:30 committed by David Keitel
parent fa9f697033
commit 137e882039

View file

@ -2696,6 +2696,9 @@ static int fg_power_get_property(struct power_supply *psy,
case POWER_SUPPLY_PROP_CHARGE_NOW_RAW:
val->intval = get_sram_prop_now(chip, FG_DATA_CC_CHARGE);
break;
case POWER_SUPPLY_PROP_HI_POWER:
val->intval = !!chip->bcl_lpm_disabled;
break;
default:
return -EINVAL;
}