Use absolute path for udc device
Avoid search in /sys/class/udc directory Bug: 339241080 Test: tested on gs201 Flag: EXEMPT bugfix Change-Id: Iad74cae0d6ad6887d79d705dc8478f1b44532503 Merged-In: Iad74cae0d6ad6887d79d705dc8478f1b44532503
This commit is contained in:
parent
2a281b76bd
commit
57f74afaf7
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ constexpr char kProcInterruptsPath[] = "/proc/interrupts";
|
||||||
constexpr char kProcIrqPath[] = "/proc/irq/";
|
constexpr char kProcIrqPath[] = "/proc/irq/";
|
||||||
constexpr char kSmpAffinityList[] = "/smp_affinity_list";
|
constexpr char kSmpAffinityList[] = "/smp_affinity_list";
|
||||||
#ifndef UDC_PATH
|
#ifndef UDC_PATH
|
||||||
#define UDC_PATH "/sys/class/udc/11210000.dwc3/"
|
#define UDC_PATH "/sys/devices/platform/11210000.usb/11210000.dwc3/udc/11210000.dwc3/"
|
||||||
#endif
|
#endif
|
||||||
static MonitorFfs monitorFfs(kGadgetName);
|
static MonitorFfs monitorFfs(kGadgetName);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue