Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323306
b: refs/heads/master
c: 2f6c797
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 7, 2012
1 parent 8fea5b2 commit 3ee9fda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6d678b632904261d07c39cd88d9e1bccdda2e37
refs/heads/master: 2f6c797f84fd764efb5eeb7cbb6a80a7244bd13c
7 changes: 5 additions & 2 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2179,9 +2179,12 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev,
}
}

if (ret == 0 && best_val >= 0)
if (ret == 0 && best_val >= 0) {
unsigned long data = best_val;

_notifier_call_chain(rdev, REGULATOR_EVENT_VOLTAGE_CHANGE,
(void *)best_val);
(void *)data);
}

trace_regulator_set_voltage_complete(rdev_get_name(rdev), best_val);

Expand Down

0 comments on commit 3ee9fda

Please sign in to comment.