]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lmb: use the BIT macro for lmb flags
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 26 Aug 2024 11:59:17 +0000 (17:29 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 3 Sep 2024 20:08:49 +0000 (14:08 -0600)
Use the BIT macro for assigning values to the LMB flags instead of
assigning random values to them.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/lmb.h

index 7b87181b9ef2afbecef17a436681b277ae206b4a..3de29d42de1a0e954daee4c773fb94490ccf50d1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <asm/types.h>
 #include <asm/u-boot.h>
+#include <linux/bitops.h>
 
 /*
  * Logical memory blocks.
@@ -18,8 +19,8 @@
  * @LMB_NOMAP: don't add to mmu configuration
  */
 enum lmb_flags {
-       LMB_NONE                = 0x0,
-       LMB_NOMAP               = 0x4,
+       LMB_NONE                = 0,
+       LMB_NOMAP               = BIT(1),
 };
 
 /**