]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Correct SPL uses of FASTBOOT_FLASH_MMC
authorSimon Glass <sjg@chromium.org>
Mon, 6 Feb 2023 00:54:12 +0000 (17:54 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:41 +0000 (07:41 -0500)
This converts 5 usages of this option to the non-SPL form, since there is
no SPL_FASTBOOT_FLASH_MMC defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/fastboot/fb_command.c
drivers/fastboot/fb_common.c
drivers/fastboot/fb_getvar.c

index 67a94798287471b4f2b41c7dbdea34e6e7f22230..5a3fb69b3f7bf8035ee6a03b5a806f7237180309 100644 (file)
@@ -295,7 +295,7 @@ void fastboot_data_complete(char *response)
  */
 static void __maybe_unused flash(char *cmd_parameter, char *response)
 {
-       if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
+       if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
                fastboot_mmc_flash_write(cmd_parameter, fastboot_buf_addr,
                                         image_size, response);
 
@@ -315,7 +315,7 @@ static void __maybe_unused flash(char *cmd_parameter, char *response)
  */
 static void __maybe_unused erase(char *cmd_parameter, char *response)
 {
-       if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
+       if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
                fastboot_mmc_erase(cmd_parameter, response);
 
        if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND))
index 7563650d07db25ced264c8981271d17b02ce0669..57b6182c46a98dde19db0e30310ade0385918864 100644 (file)
@@ -99,7 +99,7 @@ int __weak fastboot_set_reboot_flag(enum fastboot_reboot_reason reason)
        const int mmc_dev = config_opt_enabled(CONFIG_FASTBOOT_FLASH_MMC,
                                               CONFIG_FASTBOOT_FLASH_MMC_DEV, -1);
 
-       if (!CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC))
+       if (!IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC))
                return -EINVAL;
 
        if (reason >= FASTBOOT_REBOOT_REASONS_COUNT)
index bcef8f866f33e4509829e19ac27b4608170eee6e..de4879dadfb43cc6e34338a5a82cc9ea3ab7c8f8 100644 (file)
@@ -62,7 +62,7 @@ static const struct {
                .variable = "has-slot",
                .dispatch = getvar_has_slot
 #endif
-#if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)
+#if IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC)
        }, {
                .variable = "partition-type",
                .dispatch = getvar_partition_type
@@ -99,7 +99,7 @@ static int getvar_get_part_info(const char *part_name, char *response,
        struct disk_partition disk_part;
        struct part_info *part_info;
 
-       if (CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)) {
+       if (IS_ENABLED(CONFIG_FASTBOOT_FLASH_MMC)) {
                r = fastboot_mmc_get_part_info(part_name, &dev_desc, &disk_part,
                                               response);
                if (r >= 0 && size)