Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kim, Milo and committed by
Anton Vorontsov
7336880e 27aefa3b

+5 -5
+5 -5
drivers/power/lp8727_charger.c
··· 26 26 #define INT1 0x4 27 27 #define INT2 0x5 28 28 #define STATUS1 0x6 29 - #define STATUS2 0x7 29 + #define STATUS2 0x7 30 30 #define CHGCTRL2 0x9 31 31 32 32 /* CTRL1 register */ ··· 153 153 { 154 154 u8 val; 155 155 lp8727_read_byte(pchg, STATUS1, &val); 156 - return (val & DCPORT); 156 + return val & DCPORT; 157 157 } 158 158 159 159 static int lp8727_is_usb_charger(struct lp8727_chg *pchg) 160 160 { 161 161 u8 val; 162 162 lp8727_read_byte(pchg, STATUS1, &val); 163 - return (val & CHPORT); 163 + return val & CHPORT; 164 164 } 165 165 166 166 static void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw) ··· 504 504 module_exit(lp8727_exit); 505 505 506 506 MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver"); 507 - MODULE_AUTHOR 508 - ("Woogyom Kim <milo.kim@ti.com>, Daniel Jeong <daniel.jeong@ti.com>"); 507 + MODULE_AUTHOR("Woogyom Kim <milo.kim@ti.com>, " 508 + "Daniel Jeong <daniel.jeong@ti.com>"); 509 509 MODULE_LICENSE("GPL");