charger-manager: Use replacement variable to check state of battery
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Jul 2012 05:01:37 +0000 (14:01 +0900)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 23 Aug 2012 03:09:08 +0000 (20:09 -0700)
commitfd65ee5f1c21af9ff9f113842d513ca50749ad68
tree70a530582f4ccc7c477c2d3463794d480087c502
parentdbb61fc7452632a4225b2fe3719b6c2d1306e257
charger-manager: Use replacement variable to check state of battery

This patch remove unnecessary variable(cm->fullbatt_vchk_uV) by using
'desc->fullbatt_uV' field directly in fullbatt_handler() function
to check the state of battery.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/charger-manager.c
include/linux/power/charger-manager.h