linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/11] regulator: core: Fix checkpatch issue
@ 2013-10-14  8:44 Jingoo Han
  2013-10-14  8:45 ` [PATCH 02/11] regulator: anatop: " Jingoo Han
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Jingoo Han @ 2013-10-14  8:44 UTC (permalink / raw)
  To: 'Mark Brown'
  Cc: 'Liam Girdwood', linux-kernel, 'Jingoo Han'

Fix the following checkpatch errors and warnings.

  ERROR: trailing whitespace
  WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/regulator/core.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 13263d1..e8ccf20 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1287,9 +1287,8 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
 	 * If we have return value from dev_lookup fail, we do not expect to
 	 * succeed, so, quit with appropriate error value
 	 */
-	if (ret && ret != -ENODEV) {
+	if (ret && ret != -ENODEV)
 		goto out;
-	}
 
 	if (!devname)
 		devname = "deviceless";
@@ -2238,7 +2237,7 @@ int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV)
 	ret = regulator_check_voltage(rdev, &min_uV, &max_uV);
 	if (ret < 0)
 		goto out;
-	
+
 	/* restore original values in case of error */
 	old_min_uV = regulator->min_uV;
 	old_max_uV = regulator->max_uV;
@@ -2252,7 +2251,7 @@ int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV)
 	ret = _regulator_do_set_voltage(rdev, min_uV, max_uV);
 	if (ret < 0)
 		goto out2;
-	
+
 out:
 	mutex_unlock(&rdev->mutex);
 	return ret;
@@ -3657,9 +3656,8 @@ static int __init regulator_init_complete(void)
 			 * goes wrong. */
 			rdev_info(rdev, "disabling\n");
 			ret = ops->disable(rdev);
-			if (ret != 0) {
+			if (ret != 0)
 				rdev_err(rdev, "couldn't disable: %d\n", ret);
-			}
 		} else {
 			/* The intention is that in future we will
 			 * assume that full constraints are provided
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-10-15 12:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14  8:44 [PATCH 01/11] regulator: core: Fix checkpatch issue Jingoo Han
2013-10-14  8:45 ` [PATCH 02/11] regulator: anatop: " Jingoo Han
2013-10-14  8:55   ` Shawn Guo
2013-10-15 12:21   ` Mark Brown
2013-10-14  8:46 ` [PATCH 03/11] regulator: fixed: " Jingoo Han
2013-10-15 12:22   ` Mark Brown
2013-10-14  8:47 ` [PATCH 04/11] regulator: lp3971: " Jingoo Han
2013-10-15 12:23   ` Mark Brown
2013-10-14  8:49 ` [PATCH 05/11] regulator: max8997: " Jingoo Han
2013-10-15 12:24   ` Mark Brown
2013-10-14  8:49 ` [PATCH 06/11] regulator: mc13783: " Jingoo Han
2013-10-15 12:25   ` Mark Brown
2013-10-14  8:51 ` [PATCH 07/11] regulator: mc13892: " Jingoo Han
2013-10-15 12:26   ` Mark Brown
2013-10-14  8:51 ` [PATCH 08/11] regulator: tps6105x: " Jingoo Han
2013-10-14  9:47   ` Linus Walleij
2013-10-14  8:52 ` [PATCH 09/11] regulator: tps65023: " Jingoo Han
2013-10-15 12:36   ` Mark Brown
2013-10-14  8:53 ` [PATCH 10/11] regulator: tps65910: " Jingoo Han
2013-10-15 12:38   ` Mark Brown
2013-10-14  8:55 ` [PATCH 11/11] regulator: twl: " Jingoo Han
2013-10-14 18:32   ` Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).