summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx7447.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/tcpm/anx7447.c')
-rw-r--r--driver/tcpm/anx7447.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver/tcpm/anx7447.c b/driver/tcpm/anx7447.c
index 3eac7732af..5b49cd685e 100644
--- a/driver/tcpm/anx7447.c
+++ b/driver/tcpm/anx7447.c
@@ -18,15 +18,15 @@
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args)
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args)
-#define ANX7447_VENDOR_ALERT (1 << 15)
+#define ANX7447_VENDOR_ALERT BIT(15)
#define ANX7447_REG_STATUS 0x82
-#define ANX7447_REG_STATUS_LINK (1 << 0)
+#define ANX7447_REG_STATUS_LINK BIT(0)
#define ANX7447_REG_HPD 0x83
-#define ANX7447_REG_HPD_HIGH (1 << 0)
-#define ANX7447_REG_HPD_IRQ (1 << 1)
-#define ANX7447_REG_HPD_ENABLE (1 << 2)
+#define ANX7447_REG_HPD_HIGH BIT(0)
+#define ANX7447_REG_HPD_IRQ BIT(1)
+#define ANX7447_REG_HPD_ENABLE BIT(2)
#define vsafe5v_min (3800/25)
#define vsafe0v_max (800/25)