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

Commit 7438f605 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-smb5: fix POWER_SUPPLY_PROP_CHARGE_QNOVO_ENABLE property"

parents c71285d4 92668207
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1757,6 +1757,14 @@ static int smb5_batt_get_prop(struct power_supply *psy,
		break;
	case POWER_SUPPLY_PROP_CHARGE_QNOVO_ENABLE:
		val->intval = 0;
		if (!chg->qnovo_disable_votable)
			chg->qnovo_disable_votable =
				find_votable("QNOVO_DISABLE");

		if (chg->qnovo_disable_votable)
			val->intval =
				!get_effective_result(
					chg->qnovo_disable_votable);
		break;
	case POWER_SUPPLY_PROP_CHARGE_FULL:
		rc = smblib_get_prop_from_bms(chg,
+1 −0
Original line number Diff line number Diff line
@@ -435,6 +435,7 @@ struct smb_charger {
	struct votable		*limited_irq_disable_votable;
	struct votable		*hdc_irq_disable_votable;
	struct votable		*temp_change_irq_disable_votable;
	struct votable		*qnovo_disable_votable;

	/* work */
	struct work_struct	bms_update_work;