]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
lp8727_charger: Make some cosmetic changes in lp8727_delayed_func()
authorKim, Milo <Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:26:33 +0000 (09:26 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 01:06:30 +0000 (18:06 -0700)
Declare a variable at one line and align lines.

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 19c21f9b6d3b4c3986c3bb3bb324fcfe7c18ed86..80e38aecc1312eb8d41357a0e0ec43364012506f 100644 (file)
@@ -219,9 +219,11 @@ static void lp8727_enable_chgdet(struct lp8727_chg *pchg)
 
 static void lp8727_delayed_func(struct work_struct *_work)
 {
-       u8 intstat[LP8788_NUM_INTREGS], idno, vbus;
-       struct lp8727_chg *pchg =
-           container_of(_work, struct lp8727_chg, work.work);
+       struct lp8727_chg *pchg = container_of(_work, struct lp8727_chg,
+                                               work.work);
+       u8 intstat[LP8788_NUM_INTREGS];
+       u8 idno;
+       u8 vbus;
 
        if (lp8727_read_bytes(pchg, LP8727_INT1, intstat, LP8788_NUM_INTREGS)) {
                dev_err(pchg->dev, "can not read INT registers\n");