aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-01-27 01:58:51 -0500
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-03-26 12:40:56 -0400
commit7336880e3d73ee38b0c2bb99674e7e79d87dd43e (patch)
tree02ced3aaace986c0779c6c8c9d634a122f13953c /drivers/power
parent27aefa3b7d8b1c37e0bc21cbd0ce3c93bdf163ca (diff)
lp8727_charger: Fix wrong code style
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> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/lp8727_charger.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index 1e8a98b29d80..d5aab54eda11 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -26,7 +26,7 @@
26#define INT1 0x4 26#define INT1 0x4
27#define INT2 0x5 27#define INT2 0x5
28#define STATUS1 0x6 28#define STATUS1 0x6
29#define STATUS2 0x7 29#define STATUS2 0x7
30#define CHGCTRL2 0x9 30#define CHGCTRL2 0x9
31 31
32/* CTRL1 register */ 32/* CTRL1 register */
@@ -153,14 +153,14 @@ static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
153{ 153{
154 u8 val; 154 u8 val;
155 lp8727_read_byte(pchg, STATUS1, &val); 155 lp8727_read_byte(pchg, STATUS1, &val);
156 return (val & DCPORT); 156 return val & DCPORT;
157} 157}
158 158
159static int lp8727_is_usb_charger(struct lp8727_chg *pchg) 159static int lp8727_is_usb_charger(struct lp8727_chg *pchg)
160{ 160{
161 u8 val; 161 u8 val;
162 lp8727_read_byte(pchg, STATUS1, &val); 162 lp8727_read_byte(pchg, STATUS1, &val);
163 return (val & CHPORT); 163 return val & CHPORT;
164} 164}
165 165
166static void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw) 166static void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw)
@@ -504,6 +504,6 @@ module_init(lp8727_init);
504module_exit(lp8727_exit); 504module_exit(lp8727_exit);
505 505
506MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver"); 506MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver");
507MODULE_AUTHOR 507MODULE_AUTHOR("Woogyom Kim <milo.kim@ti.com>, "
508 ("Woogyom Kim <milo.kim@ti.com>, Daniel Jeong <daniel.jeong@ti.com>"); 508 "Daniel Jeong <daniel.jeong@ti.com>");
509MODULE_LICENSE("GPL"); 509MODULE_LICENSE("GPL");