diff options
| author | Sughosh Ganu <[email protected]> | 2024-08-26 17:29:17 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-09-03 14:08:49 -0600 |
| commit | a368850ae2551a4fcc5f9a2e9e8e90c056d4fe73 (patch) | |
| tree | 54b2ed51ebfb3cf2992ca4ecb328fd2e54f728a5 /include | |
| parent | 3d679aed62d462030b598813ca1a6eebb8d27aa2 (diff) | |
lmb: use the BIT macro for lmb flags
Use the BIT macro for assigning values to the LMB flags instead of
assigning random values to them.
Signed-off-by: Sughosh Ganu <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/lmb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/lmb.h b/include/lmb.h index 7b87181b9ef..3de29d42de1 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -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), }; /** |
