diff options
| author | Chanwoo Choi <cw00.choi@samsung.com> | 2012-07-27 01:01:37 -0400 |
|---|---|---|
| committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-08-22 23:09:08 -0400 |
| commit | fd65ee5f1c21af9ff9f113842d513ca50749ad68 (patch) | |
| tree | 70a530582f4ccc7c477c2d3463794d480087c502 /include/linux | |
| parent | dbb61fc7452632a4225b2fe3719b6c2d1306e257 (diff) | |
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 'include/linux')
| -rw-r--r-- | include/linux/power/charger-manager.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/power/charger-manager.h b/include/linux/power/charger-manager.h index cd22029e32aa..7d7b90fb7b4b 100644 --- a/include/linux/power/charger-manager.h +++ b/include/linux/power/charger-manager.h | |||
| @@ -194,8 +194,6 @@ struct charger_desc { | |||
| 194 | * @charger_enabled: the state of charger | 194 | * @charger_enabled: the state of charger |
| 195 | * @fullbatt_vchk_jiffies_at: | 195 | * @fullbatt_vchk_jiffies_at: |
| 196 | * jiffies at the time full battery check will occur. | 196 | * jiffies at the time full battery check will occur. |
| 197 | * @fullbatt_vchk_uV: voltage in microvolt | ||
| 198 | * criteria for full battery | ||
| 199 | * @fullbatt_vchk_work: work queue for full battery check | 197 | * @fullbatt_vchk_work: work queue for full battery check |
| 200 | * @emergency_stop: | 198 | * @emergency_stop: |
| 201 | * When setting true, stop charging | 199 | * When setting true, stop charging |
| @@ -218,7 +216,6 @@ struct charger_manager { | |||
| 218 | bool charger_enabled; | 216 | bool charger_enabled; |
| 219 | 217 | ||
| 220 | unsigned long fullbatt_vchk_jiffies_at; | 218 | unsigned long fullbatt_vchk_jiffies_at; |
| 221 | unsigned int fullbatt_vchk_uV; | ||
| 222 | struct delayed_work fullbatt_vchk_work; | 219 | struct delayed_work fullbatt_vchk_work; |
| 223 | 220 | ||
| 224 | int emergency_stop; | 221 | int emergency_stop; |
