summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Chi <raychi@google.com>2021-04-26 10:35:47 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-26 10:35:47 +0000
commit09404a3c8a77908d8878f3439b06b4fd54147765 (patch)
tree37b43b647a42ca6c70c595da348736eb03b71cb3
parent508a78ac8cc9e9994e3a7e5420d04c31bf79559c (diff)
parentc4e6499d88fe68ccb2cfce41a1df320937b45287 (diff)
downloadredfin-09404a3c8a77908d8878f3439b06b4fd54147765.tar.gz
redfin: usb: add state of usb extcon to monitorffs am: c4e6499d88
Original change: https://android-review.googlesource.com/c/device/google/redfin/+/1686048 Change-Id: Ia6aab186df5cff65f81f9f3e9fd6bd43451b17c4
-rw-r--r--usb/UsbGadget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usb/UsbGadget.h b/usb/UsbGadget.h
index 93c7d66..32b173f 100644
--- a/usb/UsbGadget.h
+++ b/usb/UsbGadget.h
@@ -66,7 +66,8 @@ using ::android::hardware::usb::gadget::V1_1::IUsbGadget;
using ::std::string;
constexpr char kGadgetName[] = "a600000.dwc3";
-static MonitorFfs monitorFfs(kGadgetName);
+constexpr char kExtconUsbState[] = "/sys/class/extcon/extcon4/cable.0/state";
+static MonitorFfs monitorFfs(kGadgetName, kExtconUsbState);
struct UsbGadget : public IUsbGadget {
UsbGadget();