From: ritsz <r.ranjan789@gmail.com>
To: anton@enomsg.org
Cc: linux-kernel@vger.kernel.org, Ritesh Ranjan <r.ranjan789@gmail.com>
Subject: [PATCH] Power: ab8500_charger: Fixed coding style issues.
Date: Sat, 4 Jan 2014 09:13:09 +0000 [thread overview]
Message-ID: <1388826789-16322-1-git-send-email-r.ranjan789@gmail.com> (raw)
Fixed coding style issues related to braces and space after comma.
Signed-off-by: Ritesh Ranjan <r.ranjan789@gmail.com>
---
drivers/power/ab8500_charger.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c
index 19110aa..7db36c9 100644
--- a/drivers/power/ab8500_charger.c
+++ b/drivers/power/ab8500_charger.c
@@ -385,17 +385,16 @@ static void ab8500_enable_disable_sw_fallback(struct ab8500_charger *di,
/* write back the changed fallback bit value to register */
ret = abx500_set_register_interruptible(di->dev, bank, reg, val);
- if (ret) {
+ if (ret)
dev_err(di->dev, "%d write failed\n", __LINE__);
- }
+
disable_otp:
if (is_ab8500(di->parent)) {
/* disable the set OTP registers again */
ret = abx500_set_register_interruptible(di->dev, 0x11, 0x00, 0x0);
- if (ret) {
+ if (ret)
dev_err(di->dev, "%d write failed\n", __LINE__);
- }
}
}
@@ -2397,7 +2396,7 @@ static void ab8500_charger_usb_link_status_work(struct work_struct *work)
return;
}
- dev_dbg(di->dev,"%s di->vbus_detected = true\n",__func__);
+ dev_dbg(di->dev, "%s di->vbus_detected = true\n", __func__);
di->vbus_detected = true;
ret = ab8500_charger_read_usb_type(di);
if (ret) {
--
1.8.4.2
reply other threads:[~2014-01-04 9:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1388826789-16322-1-git-send-email-r.ranjan789@gmail.com \
--to=r.ranjan789@gmail.com \
--cc=anton@enomsg.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®