summaryrefslogtreecommitdiff
path: root/drivers/usb/typec/tps6598x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/typec/tps6598x.c')
-rw-r--r--drivers/usb/typec/tps6598x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c
index eb8046f87a54..a237bac2b674 100644
--- a/drivers/usb/typec/tps6598x.c
+++ b/drivers/usb/typec/tps6598x.c
@@ -39,7 +39,7 @@
#define TPS_STATUS_VCONN(s) (!!((s) & BIT(7)))
/* TPS_REG_SYSTEM_CONF bits */
-#define TPS_SYSCONF_PORTINFO(c) ((c) & 3)
+#define TPS_SYSCONF_PORTINFO(c) ((c) & 7)
enum {
TPS_PORTINFO_SINK,