]> git.baikalelectronics.ru Git - kernel.git/commit
lp8727_charger: Use the definition rather than enum
authorKim, Milo <Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:24:37 +0000 (09:24 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 01:01:15 +0000 (18:01 -0700)
commit30c984f0c854f4f19fc1d45d436a6b1a8257cd37
treeb133efdfdac441b3b1edad1d36838bc7e14c9741
parentc0e4f4d148cfd7e32c183f872ac64e0b6eaea22b
lp8727_charger: Use the definition rather than enum

Enum lp8727_chg_state can be removed because only one charger status is
used - EOC(End Of Charge).

To check whether the EOC is reached or not, use simple comparison rather
than shift-operation.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/lp8727_charger.c