Messages in this thread Patch in this message | | | From | "Kim, Milo" <> | Date | Thu, 26 Jan 2012 22:58:51 -0800 | Subject | [PATCH 4/6] 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> --- 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
| |