lp8727_charger: Make lp8727_ctrl_switch() inline
authorKim, Milo <Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:25:45 +0000 (09:25 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 01:05:28 +0000 (18:05 -0700)
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/lp8727_charger.c

index 47cce41..880bb7b 100644 (file)
@@ -169,7 +169,7 @@ static int lp8727_is_usb_charger(struct lp8727_chg *pchg)
        return val & LP8727_CHPORT;
 }
 
-static void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw)
+static inline void lp8727_ctrl_switch(struct lp8727_chg *pchg, u8 sw)
 {
        lp8727_write_byte(pchg, LP8727_SWCTRL, sw);
 }