mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
power: smb5: Expose QNOVO_ENABLE property
Currently, QNOVO is not enabled and hence QNOVO_ENABLE property is not exposed. However, there are clients (like FG) which can attempt reading this property and the absence of it creates a log spew. Fix it by returning 0 through QNOVO_ENABLE property. Change-Id: Ib9ff11779a62bf49091524a114d346c7bea7d5ec Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
parent
3a71af90a0
commit
7749839c75
@ -1149,6 +1149,9 @@ static int smb5_batt_get_prop(struct power_supply *psy,
|
||||
case POWER_SUPPLY_PROP_RECHARGE_SOC:
|
||||
val->intval = chg->auto_recharge_soc;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CHARGE_QNOVO_ENABLE:
|
||||
val->intval = 0;
|
||||
break;
|
||||
default:
|
||||
pr_err("batt power supply prop %d not supported\n", psp);
|
||||
return -EINVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user