Skip to content

Commit

Permalink
Merge "power: pmic-voter: use force_val in rerun election"
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxbuild authored and Gerrit - the friendly Code Review server committed Aug 8, 2017
2 parents 17ecb2b + e6807af commit c0d71ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/power/supply/qcom/pmic-voter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
votable->data,
effective_result,
get_client_str(votable, votable->effective_client_id));
unlock_votable(votable);
return rc;
Expand Down

0 comments on commit c0d71ef

Please sign in to comment.