summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-08-31 09:27:22 +0000
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-09-20 18:07:23 -0700
commitb9633ef1a9cdf4317d8c4a8db977485e2a8e1cb8 (patch)
tree1049e8bd660fc9b8350e51b33c85696e0f383985 /drivers/power
parent18259cac98884522a46c24a73ef8d4879d824607 (diff)
downloadlinux-b9633ef1a9cdf4317d8c4a8db977485e2a8e1cb8.tar.bz2
lp8727_charger: More pure cosmetic improvements
This is really minor, but it improves the readability. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/lp8727_charger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index 717a97690dd4..c628224b7f58 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -149,7 +149,6 @@ static int lp8727_init_device(struct lp8727_chg *pchg)
if (ret)
return ret;
-
val = LP8727_ID200_EN | LP8727_ADC_EN | LP8727_CP_EN;
ret = lp8727_write_byte(pchg, LP8727_CTRL1, val);
if (ret)
@@ -162,6 +161,7 @@ static int lp8727_init_device(struct lp8727_chg *pchg)
static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
{
u8 val;
+
lp8727_read_byte(pchg, LP8727_STATUS1, &val);
return val & LP8727_DCPORT;
}
@@ -169,6 +169,7 @@ static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
static int lp8727_is_usb_charger(struct lp8727_chg *pchg)
{
u8 val;
+
lp8727_read_byte(pchg, LP8727_STATUS1, &val);
return val & LP8727_CHPORT;
}