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

Commit 63d26a58 authored by Umang Agrawal's avatar Umang Agrawal Committed by Guru Das Srinagesh
Browse files

power: smb5: Allow configuration of fcc slewing



Currently, fcc slewing is either enabled or disabled by default,
which cannot be modified during runtime. Add support to configure
fcc slewing enablement on need basis.

Change-Id: Ice4a21bd8366410b997bf887edcdb8f0d23c7ad7
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 4915375b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1472,6 +1472,9 @@ static int smb5_batt_set_prop(struct power_supply *psy,
			vote(chg->chg_disable_votable, FORCE_RECHARGE_VOTER,
					false, 0);
		break;
	case POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE:
		chg->fcc_stepper_enable = val->intval;
		break;
	default:
		rc = -EINVAL;
	}