Skip to content

Commit

Permalink
lp8727_charger: Make some cosmetic changes in lp8727_delayed_func()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim, Milo authored and Anton Vorontsov committed Sep 21, 2012
1 parent 20414e2 commit 5e00b97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5e00b97

Please sign in to comment.