Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177729
b: refs/heads/master
c: fa2984d
h: refs/heads/master
i:
  177727: ab98d08
v: v3
  • Loading branch information
Stefan Roese authored and Liam Girdwood committed Dec 17, 2009
1 parent 8e55e0c commit f046d08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: d662fc82dc745ee24d518b0fde5a6a19758092ec
refs/heads/master: fa2984d4691c96367d6666694ecc6744135174c6
12 changes: 6 additions & 6 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static ssize_t regulator_total_uA_show(struct device *dev,

mutex_lock(&rdev->mutex);
list_for_each_entry(regulator, &rdev->consumer_list, list)
uA += regulator->uA_load;
uA += regulator->uA_load;
mutex_unlock(&rdev->mutex);
return sprintf(buf, "%d\n", uA);
}
Expand Down Expand Up @@ -565,7 +565,7 @@ static void drms_uA_update(struct regulator_dev *rdev)

/* calc total requested load */
list_for_each_entry(sibling, &rdev->consumer_list, list)
current_uA += sibling->uA_load;
current_uA += sibling->uA_load;

/* now get the optimum mode for our new total regulator load */
mode = rdev->desc->ops->get_optimum_mode(rdev, input_uV,
Expand Down Expand Up @@ -1829,7 +1829,7 @@ int regulator_set_optimum_mode(struct regulator *regulator, int uA_load)

/* calc total requested load for this regulator */
list_for_each_entry(consumer, &rdev->consumer_list, list)
total_uA_load += consumer->uA_load;
total_uA_load += consumer->uA_load;

mode = rdev->desc->ops->get_optimum_mode(rdev,
input_uV, output_uV,
Expand Down Expand Up @@ -1898,9 +1898,9 @@ static void _notifier_call_chain(struct regulator_dev *rdev,

/* now notify regulator we supply */
list_for_each_entry(_rdev, &rdev->supply_list, slist) {
mutex_lock(&_rdev->mutex);
_notifier_call_chain(_rdev, event, data);
mutex_unlock(&_rdev->mutex);
mutex_lock(&_rdev->mutex);
_notifier_call_chain(_rdev, event, data);
mutex_unlock(&_rdev->mutex);
}
}

Expand Down

0 comments on commit f046d08

Please sign in to comment.