summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/driver/tcpm/tcpci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/driver/tcpm/tcpci.h b/include/driver/tcpm/tcpci.h
index eb2b4e7f9f..4ded8c23e7 100644
--- a/include/driver/tcpm/tcpci.h
+++ b/include/driver/tcpm/tcpci.h
@@ -279,7 +279,7 @@
* 11: reserved
*/
#define TCPC_REG_VBUS_VOLTAGE_SCALE(x) \
- (1 << (((x)&TCPC_REG_VBUS_VOLTAGE_SCALE_FACTOR) >> 9))
+ (1 << (((x)&TCPC_REG_VBUS_VOLTAGE_SCALE_FACTOR) >> 10))
#define TCPC_REG_VBUS_VOLTAGE_MEASURE(x) ((x)&TCPC_REG_VBUS_VOLTAGE_MEASUREMENT)
#define TCPC_REG_VBUS_VOLTAGE_VBUS(x) \
(TCPC_REG_VBUS_VOLTAGE_SCALE(x) * TCPC_REG_VBUS_VOLTAGE_MEASURE(x) * \