提交 70be1305 编写于 作者: K Kim, Milo 提交者: Anton Vorontsov

lp8727_charger: Make lp8727_init_device() shorter

Just return with lp8727_write_byte(), no need to check its value.
Signed-off-by: NMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
上级 65272bac
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册