summaryrefslogtreecommitdiff
path: root/drivers/extcon
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2014-06-20 13:40:33 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:40:38 +0900
commitf2d14ccd788d3fb6d7181cd32423aa871078c485 (patch)
treeb3ffd2132b8665b9bca94934ef79e093f556a830 /drivers/extcon
parent291b0e0d32b4afd65383559ce61dadfefa4eb70d (diff)
LOCAL / extcon: max14577: Change default h/w path from SW_OPEN to SW_UART
This patch changes default h/w patch from SW_OPEN to SW_UART without connected cables. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-max14577.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c
index 3823aa4a3a80..4560fee8627a 100644
--- a/drivers/extcon/extcon-max14577.c
+++ b/drivers/extcon/extcon-max14577.c
@@ -228,7 +228,7 @@ static int max14577_muic_set_path(struct max14577_muic_info *info,
/* Set open state to path before changing hw path */
ret = max14577_update_reg(info->max14577->regmap,
MAX14577_MUIC_REG_CONTROL1,
- CLEAR_IDBEN_MICEN_MASK, CTRL1_SW_OPEN);
+ CLEAR_IDBEN_MICEN_MASK, CTRL1_SW_UART);
if (ret < 0) {
dev_err(info->dev, "failed to update MUIC register\n");
return ret;
@@ -237,7 +237,7 @@ static int max14577_muic_set_path(struct max14577_muic_info *info,
if (attached)
ctrl1 = val;
else
- ctrl1 = CTRL1_SW_OPEN;
+ ctrl1 = CTRL1_SW_UART;
ret = max14577_update_reg(info->max14577->regmap,
MAX14577_MUIC_REG_CONTROL1,
@@ -350,7 +350,7 @@ static int max14577_muic_jig_handler(struct max14577_muic_info *info,
{
char cable_name[32];
int ret = 0;
- u8 path = CTRL1_SW_OPEN;
+ u8 path = CTRL1_SW_UART;
dev_dbg(info->dev,
"external connector is %s (adc:0x%02x)\n",