Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba3ffc6c authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan
Browse files

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
parent eae2d15e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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{}