summaryrefslogtreecommitdiffstats
path: root/drivers/power/charger-manager.c
diff options
context:
space:
mode:
authorChanwoo Choi2012-07-27 07:01:37 +0200
committerAnton Vorontsov2012-08-23 05:09:08 +0200
commitfd65ee5f1c21af9ff9f113842d513ca50749ad68 (patch)
tree70a530582f4ccc7c477c2d3463794d480087c502 /drivers/power/charger-manager.c
parentcharger-manager: Disable regulator when charger cable is detached (diff)
downloadkernel-qcow2-linux-fd65ee5f1c21af9ff9f113842d513ca50749ad68.tar.gz
kernel-qcow2-linux-fd65ee5f1c21af9ff9f113842d513ca50749ad68.tar.xz
kernel-qcow2-linux-fd65ee5f1c21af9ff9f113842d513ca50749ad68.zip
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>
Diffstat (limited to 'drivers/power/charger-manager.c')
-rw-r--r--drivers/power/charger-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c
index 240de49934f1..cdf29d2eb7a5 100644
--- a/drivers/power/charger-manager.c
+++ b/drivers/power/charger-manager.c
@@ -415,7 +415,7 @@ static void fullbatt_vchk(struct work_struct *work)
return;
}
- diff = cm->fullbatt_vchk_uV;
+ diff = desc->fullbatt_uV;
diff -= batt_uV;
dev_dbg(cm->dev, "VBATT dropped %duV after full-batt.\n", diff);