Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7524741f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel
Browse files

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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 1ed522b3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;
};

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

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

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

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