Modify attributes path for USB data on/off
Bug: 180711938 Test: HAL loaded and accessed attributes normally Signed-off-by: Albert Wang <albertccwang@google.com> Change-Id: Ic0399cfe7022cc1971fc99870d955b9308512ca8
This commit is contained in:
parent
a661b17e10
commit
891818811e
1 changed files with 4 additions and 4 deletions
|
@ -67,11 +67,11 @@ enum class HALVersion{
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr char kGadgetName[] = "11110000.dwc3";
|
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 ID_PATH NEW_UDC_PATH "dwc3_exynos_otg_id"
|
||||||
#define VBUS_PATH UDC_PATH "device/b_sess"
|
#define VBUS_PATH NEW_UDC_PATH "dwc3_exynos_otg_b_sess"
|
||||||
#define USB_DATA_PATH UDC_PATH "device/usb_data_enabled"
|
#define USB_DATA_PATH NEW_UDC_PATH "usb_data_enabled"
|
||||||
|
|
||||||
struct Usb : public IUsb {
|
struct Usb : public IUsb {
|
||||||
Usb();
|
Usb();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue