linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/6] lp8727_charger: fix wrong code style
@ 2012-01-27  6:58 Kim, Milo
  0 siblings, 0 replies; only message in thread
From: Kim, Milo @ 2012-01-27  6:58 UTC (permalink / raw)
  To: Anton Vorontsov; +Cc: linux-kernel

Definition of STATUS2
: remove space before tabs.

Return code of lp8727_is_dedicated_charger(), lp8727_is_usb_charger()
: remove parentheses when return is not a function.

MODULE_AUTHOR section
: remove space at the start of a line.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
---
 drivers/power/lp8727_charger.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index b333cdd..b531725 100755
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -25,7 +25,7 @@
 #define INT1		0x4
 #define INT2		0x5
 #define STATUS1		0x6
-#define STATUS2 	0x7
+#define STATUS2		0x7
 #define CHGCTRL2	0x9
 
 /* CTRL1 register */
@@ -152,14 +152,14 @@ static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
 {
 	u8 val;
 	lp8727_read_byte(pchg, STATUS1, &val);
-	return (val & DCPORT);
+	return val & DCPORT;
 }
 
 static int lp8727_is_usb_charger(struct lp8727_chg *pchg)
 {
 	u8 val;
 	lp8727_read_byte(pchg, STATUS1, &val);
-	return (val & CHPORT);
+	return val & CHPORT;
 }
 
 static void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw)
@@ -503,5 +503,5 @@ module_exit(lp8727_exit);
 
 MODULE_DESCRIPTION("Texas Instruments LP8727 charger driver");
 MODULE_AUTHOR
-    ("Woogyom Kim <milo.kim@ti.com>, Daniel Jeong <daniel.jeong@ti.com>");
+("Woogyom Kim <milo.kim@ti.com>, Daniel Jeong <daniel.jeong@ti.com>");
 MODULE_LICENSE("GPL");
-- 
1.7.4.1


Best Regards,
Milo (Woogyom) Kim
Texas Instruments Incorporated





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-27  6:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-27  6:58 [PATCH 4/6] lp8727_charger: fix wrong code style Kim, Milo

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).