]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitfaaae9bbb1f91f8bcd03bd9976620ac08d8b4454
treeb133efdfdac441b3b1edad1d36838bc7e14c9741
parentb1ad079680b24386d12aa99dd9afd4eb7093bbee
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