[PATCH 1/3] mmc: Convert hs400_tuning flag from u8 to bool
Marek Vasut
marek.vasut at mailbox.org
Tue Feb 20 12:27:39 CET 2024
On 2/20/24 11:57, Paul Barker wrote:
> On 20/02/2024 08:37, Marek Vasut wrote:
>> This hs400_tuning is a flag, make it bool. No functional change.
>> This will be useful in the following patch, which adds another
>> more generic flag, where the compiler can better use the space
>> now reserved for the u8 to store more flags in it.
>
> The minimum size for a bool is one byte so there likely won't be any
> improvement in struct size from using bool instead of u8 for
> `hs400_tuning` here and `tuning` added in the next patch. I still think
> it's a good change to make though, bool is the right type for an on/off
> flag.
The compiler does not do boolean packing in structures ?
More information about the U-Boot
mailing list