In preparation for adding more boolean flags, turn the current two bools into two bits sharing the same u8-sized member. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- v1 -> v2: - no change --- include/mci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mci.h b/include/mci.h index 773aed896c96..4f1ff9dc57c8 100644 --- a/include/mci.h +++ b/include/mci.h @@ -568,8 +568,8 @@ struct mci { unsigned csd[4]; /**< card's "card specific data register" */ unsigned cid[4]; /**< card's "card identification register" */ unsigned short rca; /**< relative card address */ - bool sdio; /**< card is a SDIO card */ - bool high_capacity; /**< high capacity card is connected (OCR -> OCR_HCS) */ + u8 sdio:1; /**< card is a SDIO card */ + u8 high_capacity:1; /**< high capacity card is connected (OCR -> OCR_HCS) */ unsigned tran_speed; /**< Maximum transfer speed */ /** currently used data block length for read accesses */ unsigned read_bl_len; -- 2.39.2