[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1424771687-7976-2-git-send-email-k.kozlowski@samsung.com>
Date: Tue, 24 Feb 2015 10:54:44 +0100
From: Krzysztof Kozlowski <k.kozlowski@...sung.com>
To: Sebastian Reichel <sre@...nel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <k.kozlowski@...sung.com>
Subject: [PATCH 2/5] 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@...sung.com>
---
drivers/power/max14577_charger.c | 5 -----
1 file changed, 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 {
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;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists