mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
lp8727_charger: Make lp8727_init_device() shorter
Just return with lp8727_write_byte(), no need to check its value. Signed-off-by: Milo(Woogyom) Kim <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
65272bac3a
commit
70be130529
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue