aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-11-27 09:56:34 -0500
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-12-17 05:27:27 -0500
commitfa2984d4691c96367d6666694ecc6744135174c6 (patch)
tree0390a782669389b8082ff6c71e52ec72e7662926 /drivers/regulator
parentd662fc82dc745ee24d518b0fde5a6a19758092ec (diff)
regulator: core.c: Small coding style cleanup (indentation fixup)
Signed-off-by: Stefan Roese <sr@denx.de> Cc: Liam Girdwood <lrg@slimlogic.co.uk> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 2dab0d9e11f5..1af8df203b72 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -390,7 +390,7 @@ static ssize_t regulator_total_uA_show(struct device *dev,
390 390
391 mutex_lock(&rdev->mutex); 391 mutex_lock(&rdev->mutex);
392 list_for_each_entry(regulator, &rdev->consumer_list, list) 392 list_for_each_entry(regulator, &rdev->consumer_list, list)
393 uA += regulator->uA_load; 393 uA += regulator->uA_load;
394 mutex_unlock(&rdev->mutex); 394 mutex_unlock(&rdev->mutex);
395 return sprintf(buf, "%d\n", uA); 395 return sprintf(buf, "%d\n", uA);
396} 396}
@@ -565,7 +565,7 @@ static void drms_uA_update(struct regulator_dev *rdev)
565 565
566 /* calc total requested load */ 566 /* calc total requested load */
567 list_for_each_entry(sibling, &rdev->consumer_list, list) 567 list_for_each_entry(sibling, &rdev->consumer_list, list)
568 current_uA += sibling->uA_load; 568 current_uA += sibling->uA_load;
569 569
570 /* now get the optimum mode for our new total regulator load */ 570 /* now get the optimum mode for our new total regulator load */
571 mode = rdev->desc->ops->get_optimum_mode(rdev, input_uV, 571 mode = rdev->desc->ops->get_optimum_mode(rdev, input_uV,
@@ -1829,7 +1829,7 @@ int regulator_set_optimum_mode(struct regulator *regulator, int uA_load)
1829 1829
1830 /* calc total requested load for this regulator */ 1830 /* calc total requested load for this regulator */
1831 list_for_each_entry(consumer, &rdev->consumer_list, list) 1831 list_for_each_entry(consumer, &rdev->consumer_list, list)
1832 total_uA_load += consumer->uA_load; 1832 total_uA_load += consumer->uA_load;
1833 1833
1834 mode = rdev->desc->ops->get_optimum_mode(rdev, 1834 mode = rdev->desc->ops->get_optimum_mode(rdev,
1835 input_uV, output_uV, 1835 input_uV, output_uV,
@@ -1898,9 +1898,9 @@ static void _notifier_call_chain(struct regulator_dev *rdev,
1898 1898
1899 /* now notify regulator we supply */ 1899 /* now notify regulator we supply */
1900 list_for_each_entry(_rdev, &rdev->supply_list, slist) { 1900 list_for_each_entry(_rdev, &rdev->supply_list, slist) {
1901 mutex_lock(&_rdev->mutex); 1901 mutex_lock(&_rdev->mutex);
1902 _notifier_call_chain(_rdev, event, data); 1902 _notifier_call_chain(_rdev, event, data);
1903 mutex_unlock(&_rdev->mutex); 1903 mutex_unlock(&_rdev->mutex);
1904 } 1904 }
1905} 1905}
1906 1906