summaryrefslogtreecommitdiff
path: root/drivers/extcon
diff options
context:
space:
mode:
authorYunfan Zhang <yunfanz@nvidia.com>2013-07-10 14:18:16 +0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:32:05 -0700
commit268cf76a7f3f4014afc4ef32a47980f3e087d802 (patch)
treef0e9ca3d8e3e9ffa1e5371ccf57237393934713d /drivers/extcon
parent7d45b5e11e03b0918f86091b900c2b10c6610635 (diff)
extcon: palmas: remove duplicate ID state update code
Remove the duplicate and incorrect code in vbus cable update Change-Id: I59b7b742681b276ace4f902a3b7360f092be5d5c Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com> Reviewed-on: http://git-master/r/247020 (cherry picked from commit 7f1cf8a10713b42cf2725b8b6d733c83d3c60401) Reviewed-on: http://git-master/r/247732 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-palmas.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index 089f064eadd1..ad2d8c0f3643 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -1,7 +1,7 @@
/*
* palmas-extcon.c -- Palmas VBUS detection in extcon framework.
*
- * Copyright (c) 2013, NVIDIA Corporation.
+ * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
*
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*
@@ -75,15 +75,6 @@ static int palmas_extcon_vbus_cable_update(
(status & PALMAS_INT3_LINE_STATE_VBUS) ? "Valid" : "Invalid",
status);
- if (status & PALMAS_INT3_LINE_STATE_ID)
- extcon_set_cable_state(palma_econ->edev, "USB-Host", true);
- else
- extcon_set_cable_state(palma_econ->edev, "USB-Host", false);
-
- dev_info(palma_econ->dev, "ID %s status: 0x%02x\n",
- (status & PALMAS_INT3_LINE_STATE_VBUS) ? "Valid" : "Invalid",
- status);
-
return 0;
}