Browse Source

extcon: max77693: Allow MHL attach notifier

Without this patch extcon couldn't notify attaching MHL cable.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Maciej Purski 8 years ago
parent
commit
4243c408f7
1 changed files with 2 additions and 3 deletions
  1. 2 3
      drivers/extcon/extcon-max77693.c

+ 2 - 3
drivers/extcon/extcon-max77693.c

@@ -811,9 +811,8 @@ static int max77693_muic_chg_handler(struct max77693_muic_info *info)
 			 */
 			 */
 			extcon_set_state_sync(info->edev, EXTCON_CHG_USB_DCP,
 			extcon_set_state_sync(info->edev, EXTCON_CHG_USB_DCP,
 						attached);
 						attached);
-			if (!cable_attached)
-				extcon_set_state_sync(info->edev,
-					EXTCON_DISP_MHL, cable_attached);
+			extcon_set_state_sync(info->edev, EXTCON_DISP_MHL,
+						cable_attached);
 			break;
 			break;
 		}
 		}