projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65272ba
)
lp8727_charger: Make lp8727_init_device() shorter
author
Kim, Milo
<Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:25:34 +0000
(09:25 +0000)
committer
Anton Vorontsov
<anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 01:04:29 +0000
(18:04 -0700)
Just return with lp8727_write_byte(), no need to check its value.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/lp8727_charger.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/lp8727_charger.c
b/drivers/power/lp8727_charger.c
index 658518ba675b35d224a7da278810cf1b7ff1467c..47cce4166c157b766b20e3bda6e1184bcbf5a313 100644
(file)
--- a/
drivers/power/lp8727_charger.c
+++ b/
drivers/power/lp8727_charger.c
@@
-152,11
+152,7
@@
static int lp8727_init_device(struct lp8727_chg *pchg)
return ret;
val = LP8727_INT_EN | LP8727_CHGDET_EN;
- ret = lp8727_write_byte(pchg, LP8727_CTRL2, val);
- if (ret)
- return ret;
-
- return 0;
+ return lp8727_write_byte(pchg, LP8727_CTRL2, val);
}
static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)