mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
lp8727_charger: More pure cosmetic improvements
This is really minor, but it improves the readability. Signed-off-by: Milo(Woogyom) Kim <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
18259cac98
commit
b9633ef1a9
2 changed files with 6 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue