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

Commit c0d71ef0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: pmic-voter: use force_val in rerun election"

parents 17ecb2b7 e6807af8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -438,12 +438,14 @@ int vote(struct votable *votable, const char *client_str, bool enabled, int val)
int rerun_election(struct votable *votable)
{
	int rc = 0;
	int effective_result;

	lock_votable(votable);
	effective_result = get_effective_result_locked(votable);
	if (votable->callback)
		rc = votable->callback(votable,
			votable->data,
			votable->effective_result,
			effective_result,
			get_client_str(votable, votable->effective_client_id));
	unlock_votable(votable);
	return rc;