From 3b7995b72e53e229b04604e92d9ad67fa69a6402 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 3 Sep 2015 13:50:27 -0700 Subject: [PATCH] init.usb.rc: fix USB typec property names Fix typos in the usb typec properties (sys.usb.typec.*), so the data_role and the power_role can be written properly in the sysfs. Bug: 23790832 Change-Id: I90f591ab37825a07e0610ef1fec0e831eb19515d --- rootdir/init.usb.rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rootdir/init.usb.rc b/rootdir/init.usb.rc index cb1cd57e4..a105afe5c 100644 --- a/rootdir/init.usb.rc +++ b/rootdir/init.usb.rc @@ -108,18 +108,18 @@ on property:sys.usb.typec.mode=ufp # USB data role changes on property:sys.usb.typec.data_role=device - write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data} + write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} setprop sys.usb.typec.state ${sys.usb.typec.data_role} on property:sys.usb.typec.data_role=host - write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data} + write /sys/class/dual_role_usb/otg_default/data_role ${sys.usb.typec.data_role} setprop sys.usb.typec.state ${sys.usb.typec.data_role} # USB power role changes on property:sys.usb.typec.power_role=source - write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power} + write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} setprop sys.usb.typec.state ${sys.usb.typec.power_role} on property:sys.usb.typec.power_role=sink - write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power} + write /sys/class/dual_role_usb/otg_default/power_role ${sys.usb.typec.power_role} setprop sys.usb.typec.state ${sys.usb.typec.power_role}