]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7685803d2ba61f5fb017a501553cb7c7c818039
tree70a530582f4ccc7c477c2d3463794d480087c502
parent7a798748c26bcfaf0cff971c682e59f1abed67b4
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