Skip to content

Commit

Permalink
power_supply: max14577: Don't store charging and battery states for l…
Browse files Browse the repository at this point in the history
…ater

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>
  • Loading branch information
Krzysztof Kozlowski authored and Sebastian Reichel committed Feb 25, 2015
1 parent 1ed522b commit 7524741
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/power/max14577_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ struct max14577_charger {
struct max14577 *max14577;
struct power_supply charger;

unsigned int charging_state;
unsigned int battery_state;

struct max14577_charger_platform_data *pdata;
};

Expand Down Expand Up @@ -89,7 +86,6 @@ static int max14577_get_charger_state(struct max14577_charger *chg)
}

state_set:
chg->charging_state = state;
return state;
}

Expand Down Expand Up @@ -167,7 +163,6 @@ static int max14577_get_battery_health(struct max14577_charger *chg)
}

state_set:
chg->battery_state = state;
return state;
}

Expand Down

0 comments on commit 7524741

Please sign in to comment.