From 387995b245875ebb45bb679ece1c9f211b0e9682 Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Wed, 12 May 2021 23:19:48 +0800 Subject: [PATCH] Revert "gs101: usb: add state of usb extcon to monitorffs" This reverts commit 72ef08cafa11ab10bc31105c70836cef92e1f7b4. Reason for revert: using alternate method for original behavior change Bug: 187261232 Test: build pass Change-Id: I5643a4109f6e4a64d167ed9ee1ce0bc3492cea42 --- usb/UsbGadget.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usb/UsbGadget.h b/usb/UsbGadget.h index e3eb3b4e..2669f8da 100644 --- a/usb/UsbGadget.h +++ b/usb/UsbGadget.h @@ -74,8 +74,7 @@ constexpr char kGadgetName[] = "11110000.dwc3"; #ifndef UDC_PATH #define UDC_PATH "/sys/class/udc/11110000.dwc3/" #endif -constexpr char kExtconUsbState[] = "/sys/class/extcon/extcon0/cable.0/state"; -static MonitorFfs monitorFfs(kGadgetName, kExtconUsbState); +static MonitorFfs monitorFfs(kGadgetName); #define SPEED_PATH UDC_PATH "current_speed"