]> git.dujemihanovic.xyz Git - u-boot.git/commit
ide: Avoid preprocessor for CONFIG_LBA48
authorSimon Glass <sjg@chromium.org>
Tue, 25 Apr 2023 16:54:41 +0000 (10:54 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 27 Apr 2023 17:51:06 +0000 (13:51 -0400)
commit8b1b943a7aa3c2d071982b99220cdee49ed2c5fb
treeb4a9582e9aeb51df0c3925dc57877c8fae9e1ca6
parentc94a331061741fab44aeeca3d17caafdadeb4543
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 <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/block/ide.c
include/blk.h