mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
Merge "Revert "usb: typec: Fix setting of invalid value of opmode""
This commit is contained in:
commit
d2e2c00823
2 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue