Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330505
b: refs/heads/master
c: 638555d
h: refs/heads/master
i:
  330503: b2ebb53
v: v3
  • Loading branch information
Kim, Milo authored and Anton Vorontsov committed Sep 21, 2012
1 parent 805dddb commit 1b9b862
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d71fda01610269e3aaedd451f8d3e34cdf550036
refs/heads/master: 638555d2769b7dfb8654bae513cff295ea9a3837
8 changes: 8 additions & 0 deletions trunk/drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/power_supply.h>
#include <linux/platform_data/lp8727.h>

#define LP8788_NUM_INTREGS 2
#define DEFAULT_DEBOUNCE_MSEC 270

/* Registers */
Expand Down Expand Up @@ -136,6 +137,13 @@ static int lp8727_init_device(struct lp8727_chg *pchg)
{
u8 val;
int ret;
u8 intstat[LP8788_NUM_INTREGS];

/* clear interrupts */
ret = lp8727_read_bytes(pchg, INT1, intstat, LP8788_NUM_INTREGS);
if (ret)
return ret;


val = ID200_EN | ADC_EN | CP_EN;
ret = lp8727_write_byte(pchg, CTRL1, val);
Expand Down

0 comments on commit 1b9b862

Please sign in to comment.