diff options
| author | Simon Glass <[email protected]> | 2023-04-25 10:54:41 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-04-27 13:51:06 -0400 |
| commit | 8b1b943a7aa3c2d071982b99220cdee49ed2c5fb (patch) | |
| tree | b4a9582e9aeb51df0c3925dc57877c8fae9e1ca6 /include/blk.h | |
| parent | c94a331061741fab44aeeca3d17caafdadeb4543 (diff) | |
ide: Avoid preprocessor for CONFIG_LBA48
Use IS_ENABLED() instead for all conditions. Add the 'lba48' flag into
struct blk_desc always, since it uses very little space. Use a bool so
the meaning is clearer.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/blk.h')
| -rw-r--r-- | include/blk.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/blk.h b/include/blk.h index 871922dcde0..2c9c7985a88 100644 --- a/include/blk.h +++ b/include/blk.h @@ -62,10 +62,8 @@ struct blk_desc { unsigned char hwpart; /* HW partition, e.g. for eMMC */ unsigned char type; /* device type */ unsigned char removable; /* removable device */ -#ifdef CONFIG_LBA48 /* device can use 48bit addr (ATA/ATAPI v7) */ - unsigned char lba48; -#endif + bool lba48; unsigned char atapi; /* Use ATAPI protocol */ lbaint_t lba; /* number of blocks */ unsigned long blksz; /* block size */ |
