diff options
| author | Bin Meng <[email protected]> | 2023-09-26 16:43:31 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-10-10 16:19:29 -0400 |
| commit | 7020b2eca49e2c902bb443273ba21df2050d7f1e (patch) | |
| tree | 3ab43cd31eb25f3f4dbde1f07f6e4439242225b5 /include | |
| parent | 833ff23047c50e4053fb1bda21f4e2c9f6a3aa6a (diff) | |
blk: Use a macro for the typical block size
Avoid using the magic number 512 directly.
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/blk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/blk.h b/include/blk.h index 95e86e2d5d1..bbff057aed4 100644 --- a/include/blk.h +++ b/include/blk.h @@ -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) |
