commit | 2294ecbc0667331dedfd0ec7ada60d4938cccd68 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng@tinylab.org> | Tue Sep 26 16:43:31 2023 +0800 |
committer | Tom Rini <trini@konsulko.com> | Tue Oct 10 16:19:29 2023 -0400 |
tree | 3ab43cd31eb25f3f4dbde1f07f6e4439242225b5 | |
parent | 8728667f892524987d9a4fa00d979be669caa6af [diff] [blame] |
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>
diff --git a/include/blk.h b/include/blk.h index 95e86e2..bbff057 100644 --- a/include/blk.h +++ b/include/blk.h
@@ -21,6 +21,8 @@ #define LBAF "%" LBAFlength "x" #define LBAFU "%" LBAFlength "u" +#define DEFAULT_BLKSZ 512 + struct udevice; static inline bool blk_enabled(void)