linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sangho Yi <antiroot@gmail.com>
To: broonie@opensource.wolfsonmicro.com, cbow@mail.ru, dwmw2@inradead.org
Cc: linux-kernel@vger.kernel.org,
	patches@opensource.wolfsonmicro.com,
	Sangho Yi <antiroot@gmail.com>
Subject: [PATCH 1/3] power: wm831x_power: Fixed indentation errors
Date: Thu, 18 Oct 2012 00:01:14 +0900	[thread overview]
Message-ID: <1350486076-3784-1-git-send-email-antiroot@gmail.com> (raw)
In-Reply-To: <n>

I fixed the following indentation errors (a couple of errors were on the
wm831x_power.c)
WARNING: suspect code indent for conditional statements

Signed-off-by: Sangho Yi <antiroot@gmail.com>
---
 drivers/power/wm831x_power.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c
index fc1ad95..833841b 100644
--- a/drivers/power/wm831x_power.c
+++ b/drivers/power/wm831x_power.c
@@ -555,14 +555,14 @@ static __devinit int wm831x_power_probe(struct platform_device *pdev)
 	power->have_battery = ret & WM831X_CHG_ENA;
 
 	if (power->have_battery) {
-		    battery->name = power->battery_name;
-		    battery->properties = wm831x_bat_props;
-		    battery->num_properties = ARRAY_SIZE(wm831x_bat_props);
-		    battery->get_property = wm831x_bat_get_prop;
-		    battery->use_for_apm = 1;
-		    ret = power_supply_register(&pdev->dev, battery);
-		    if (ret)
-			    goto err_usb;
+		battery->name = power->battery_name;
+		battery->properties = wm831x_bat_props;
+		battery->num_properties = ARRAY_SIZE(wm831x_bat_props);
+		battery->get_property = wm831x_bat_get_prop;
+		battery->use_for_apm = 1;
+		ret = power_supply_register(&pdev->dev, battery);
+		if (ret)
+			goto err_usb;
 	}
 
 	irq = wm831x_irq(wm831x, platform_get_irq_byname(pdev, "SYSLO"));
-- 
1.7.9.5


             reply	other threads:[~2012-10-17 15:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-17 15:01 Sangho Yi [this message]
2012-10-17 15:01 ` [PATCH 2/3] power: wm831x_power.c: fixed const struct declaration warning Sangho Yi
2012-10-17 15:01 ` [PATCH 3/3] power: wm831x_power.c: Fixed indentation bug and whitespace errors Sangho Yi
2012-10-17 15:39   ` Joe Perches
2012-10-17 18:00     ` [PATCH] wm831x: Add and use a wm831x_irq_byname convenience function Joe Perches
2012-11-26 21:35       ` Grant Likely
2012-11-26 21:40         ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350486076-3784-1-git-send-email-antiroot@gmail.com \
    --to=antiroot@gmail.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=cbow@mail.ru \
    --cc=dwmw2@inradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).