blk: Use a macro for the typical block size

Avoid using the magic number 512 directly.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Bin Meng
2023-09-26 16:43:31 +08:00
committed by Tom Rini
parent 833ff23047
commit 7020b2eca4
10 changed files with 16 additions and 10 deletions

View File

@@ -21,6 +21,8 @@ typedef ulong lbaint_t;
#define LBAF "%" LBAFlength "x"
#define LBAFU "%" LBAFlength "u"
#define DEFAULT_BLKSZ 512
struct udevice;
static inline bool blk_enabled(void)