summaryrefslogtreecommitdiff
path: root/chip/stm32/clock-stm32l4.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/clock-stm32l4.c')
-rw-r--r--chip/stm32/clock-stm32l4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/clock-stm32l4.c b/chip/stm32/clock-stm32l4.c
index c9042d10c4..182abcafca 100644
--- a/chip/stm32/clock-stm32l4.c
+++ b/chip/stm32/clock-stm32l4.c
@@ -324,9 +324,9 @@ void clock_enable_module(enum module_id module, int enable)
int new_mask;
if (enable)
- new_mask = clock_mask | (1 << module);
+ new_mask = clock_mask | BIT(module);
else
- new_mask = clock_mask & ~(1 << module);
+ new_mask = clock_mask & ~BIT(module);
/* Only change clock if needed */
if ((!!new_mask) != (!!clock_mask)) {