summaryrefslogtreecommitdiff
path: root/board/rammus/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/rammus/board.c')
-rw-r--r--board/rammus/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/rammus/board.c b/board/rammus/board.c
index d4ec8ea13a..7497ac8aa5 100644
--- a/board/rammus/board.c
+++ b/board/rammus/board.c
@@ -312,7 +312,7 @@ static void board_report_pmic_fault(const char *str)
!= EC_SUCCESS)
return;
- if (!(vrfault & (1 << 4)))
+ if (!(vrfault & BIT(4)))
return;
/* VRFAULT has occurred, print VRFAULT status bits. */
@@ -328,7 +328,7 @@ static void board_report_pmic_fault(const char *str)
pwrstat2);
/* Clear all faults -- Write 1 to clear. */
- i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x8, (1 << 4));
+ i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x8, BIT(4));
i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x16, pwrstat1);
i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x17, pwrstat2);