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

Commit 56cbb0d7 authored by Jeevan Shriram's avatar Jeevan Shriram
Browse files

Revert "usb: typec: Fix setting of invalid value of opmode"



This reverts commit 410f0c2b.

Additional enum value in include header is causing CRC differences
with GKI kernel.

Change-Id: Ia27f4d217a6bb2e234f49cb93c4163f372f4bcd7
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent 4f3b9ec9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1369,8 +1369,7 @@ void typec_set_pwr_opmode(struct typec_port *port,
{
	struct device *partner_dev;

	if ((port->pwr_opmode == opmode) || (opmode < TYPEC_PWR_MODE_USB) ||
						(opmode > TYPEC_PWR_MODE_MAX))
	if (port->pwr_opmode == opmode)
		return;

	port->pwr_opmode = opmode;
+0 −1
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ enum typec_pwr_opmode {
	TYPEC_PWR_MODE_1_5A,
	TYPEC_PWR_MODE_3_0A,
	TYPEC_PWR_MODE_PD,
	TYPEC_PWR_MODE_MAX = TYPEC_PWR_MODE_PD,
};

enum typec_accessory {