Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7749839c authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

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: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 3a71af90
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;