Modify attributes path for USB data on/off am: 836c31f812
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14730575 Change-Id: If2001ba809afcca1e44c01a335c9485eae622ab5
This commit is contained in:
commit
ae433768b5
1 changed files with 4 additions and 4 deletions
|
@ -67,11 +67,11 @@ enum class HALVersion{
|
|||
};
|
||||
|
||||
constexpr char kGadgetName[] = "11110000.dwc3";
|
||||
#define UDC_PATH "/sys/class/udc/11110000.dwc3/"
|
||||
#define NEW_UDC_PATH "/sys/devices/platform/11110000.usb/"
|
||||
|
||||
#define ID_PATH UDC_PATH "device/id"
|
||||
#define VBUS_PATH UDC_PATH "device/b_sess"
|
||||
#define USB_DATA_PATH UDC_PATH "device/usb_data_enabled"
|
||||
#define ID_PATH NEW_UDC_PATH "dwc3_exynos_otg_id"
|
||||
#define VBUS_PATH NEW_UDC_PATH "dwc3_exynos_otg_b_sess"
|
||||
#define USB_DATA_PATH NEW_UDC_PATH "usb_data_enabled"
|
||||
|
||||
struct Usb : public IUsb {
|
||||
Usb();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue