Usb: Fix incorrect mapping of port mode constants

HalUsbPortMode has incorrect mapping of the Mode constants.
This change aligns the contants to that of the HAL interface.

Bug: 287516105
Change-Id: I1ce03549857d529041cc2100c1080e52c5259875
This commit is contained in:
Badhri Jagan Sridharan
2023-06-15 20:38:25 +00:00
parent eae2d15e64
commit ba3ffc6c9a

View File

@@ -70,17 +70,17 @@ public interface UsbPortHal {
*
* @hide
*/
public static final int HAL_MODE_DFP = 1;
public static final int HAL_MODE_UFP = 1;
/**
* This USB port can act as an upstream facing port (device).
*
* @hide
*/
public static final int HAL_MODE_UFP = 2;
public static final int HAL_MODE_DFP = 2;
@IntDef(prefix = { "HAL_MODE_" }, value = {
HAL_MODE_DFP,
HAL_MODE_UFP,
HAL_MODE_DFP,
})
@Retention(RetentionPolicy.SOURCE)
@interface HalUsbPortMode{}