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:
parent
fa9f697033
commit
137e882039
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue