summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2014-10-15 19:23:52 +0900
committerChanho Park <chanho61.park@samsung.com>2014-10-15 23:36:34 -0700
commitc900a1ab108c9b24d80bfe8fd9aa5162d30b30c3 (patch)
tree5f5cb2f14976a8438630959441921a3757982996
parentadbce43895b2a23e023d14ef57e041111a64c0f6 (diff)
downloadlinux-3.10-c900a1ab108c9b24d80bfe8fd9aa5162d30b30c3.tar.gz
linux-3.10-c900a1ab108c9b24d80bfe8fd9aa5162d30b30c3.tar.bz2
linux-3.10-c900a1ab108c9b24d80bfe8fd9aa5162d30b30c3.zip
power: max14577_charger: Fix to represent cable type properly.
It shows '1' even for none-typed cable that might mislead user or charging managment to understand that there is a charge-able cable which is truly not. It should return 0 for none-typed cable to prevent wrong attempt for charging. Change-Id: I851ac424b6895867e611f6786bdb18e540d7f2d4 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
-rw-r--r--drivers/power/max14577_charger.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/power/max14577_charger.c b/drivers/power/max14577_charger.c
index 563dd2b0ddc..2b9535db29f 100644
--- a/drivers/power/max14577_charger.c
+++ b/drivers/power/max14577_charger.c
@@ -128,7 +128,6 @@ static int max14577_get_online(struct max14577_charger *chg)
case MAX14577_CHARGER_TYPE_DEAD_BATTERY:
case MAX77836_CHARGER_TYPE_SPECIAL_BIAS:
return 2;
- case MAXIM_CHARGER_TYPE_NONE:
case MAXIM_CHARGER_TYPE_DOWNSTREAM_PORT:
case MAX14577_CHARGER_TYPE_RESERVED:
case MAX77836_CHARGER_TYPE_RESERVED: