]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: Convert hs400_tuning flag from u8 to bool
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 24 Feb 2024 22:32:09 +0000 (23:32 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 15 Apr 2024 06:19:12 +0000 (15:19 +0900)
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.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c
include/mmc.h

index 156e2a0242cdb484c5c133b5669d251867afb697..55987f329ef15e3b262afa13ee2051ebf87f0a11 100644 (file)
@@ -2034,9 +2034,9 @@ static int mmc_select_hs400(struct mmc *mmc)
        mmc_set_clock(mmc, mmc->tran_speed, false);
 
        /* execute tuning if needed */
-       mmc->hs400_tuning = 1;
+       mmc->hs400_tuning = true;
        err = mmc_execute_tuning(mmc, MMC_CMD_SEND_TUNING_BLOCK_HS200);
-       mmc->hs400_tuning = 0;
+       mmc->hs400_tuning = false;
        if (err) {
                debug("tuning failed\n");
                return err;
index 8df14130eddf996fefcdf5c8ef2efaa061e5f621..a4584f847296f58c1778a3bd632300d6765ca099 100644 (file)
@@ -736,7 +736,7 @@ struct mmc {
                                  * accessing the boot partitions
                                  */
        u32 quirks;
-       u8 hs400_tuning;
+       bool hs400_tuning:1;
 
        enum bus_mode user_speed_mode; /* input speed mode from user */
 };