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:
Subbaraman Narayanamurthy 2018-05-31 14:45:21 -07:00
parent 3a71af90a0
commit 7749839c75

View File

@ -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;