diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-02-24 04:54:44 -0500 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-02-25 15:45:46 -0500 |
commit | 7524741f839e10451b072d2c9fdf525e587ecd46 (patch) | |
tree | 0f0cd540c0414d8fdb1aba471c1301e41bc82386 /drivers/power | |
parent | 1ed522b390f423f9cb21ad3414fbe281a32e3ec5 (diff) |
power_supply: max14577: Don't store charging and battery states for later
Remove caching of charging and battery states in driver's state
container because the cached value was not used later.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/max14577_charger.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/power/max14577_charger.c b/drivers/power/max14577_charger.c index ef4103ee6021..c72238aa011b 100644 --- a/drivers/power/max14577_charger.c +++ b/drivers/power/max14577_charger.c | |||
@@ -26,9 +26,6 @@ struct max14577_charger { | |||
26 | struct max14577 *max14577; | 26 | struct max14577 *max14577; |
27 | struct power_supply charger; | 27 | struct power_supply charger; |
28 | 28 | ||
29 | unsigned int charging_state; | ||
30 | unsigned int battery_state; | ||
31 | |||
32 | struct max14577_charger_platform_data *pdata; | 29 | struct max14577_charger_platform_data *pdata; |
33 | }; | 30 | }; |
34 | 31 | ||
@@ -89,7 +86,6 @@ static int max14577_get_charger_state(struct max14577_charger *chg) | |||
89 | } | 86 | } |
90 | 87 | ||
91 | state_set: | 88 | state_set: |
92 | chg->charging_state = state; | ||
93 | return state; | 89 | return state; |
94 | } | 90 | } |
95 | 91 | ||
@@ -167,7 +163,6 @@ static int max14577_get_battery_health(struct max14577_charger *chg) | |||
167 | } | 163 | } |
168 | 164 | ||
169 | state_set: | 165 | state_set: |
170 | chg->battery_state = state; | ||
171 | return state; | 166 | return state; |
172 | } | 167 | } |
173 | 168 | ||