summaryrefslogtreecommitdiff
path: root/common/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/flash.c')
-rw-r--r--common/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/flash.c b/common/flash.c
index f98bf95a1e..2eb5f265aa 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -45,8 +45,8 @@
/* Flags for persist_state.flags */
/* Protect persist state and RO firmware at boot */
#define PERSIST_FLAG_PROTECT_RO 0x02
-#define PSTATE_VALID_FLAGS (1 << 0)
-#define PSTATE_VALID_SERIALNO (1 << 1)
+#define PSTATE_VALID_FLAGS BIT(0)
+#define PSTATE_VALID_SERIALNO BIT(1)
struct persist_state {
uint8_t version; /* Version of this struct */