From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
Mattijs Korpershoek <mkorpershoek@baylibre.com>
Subject: [PATCH v2 085/169] Correct SPL uses of FASTBOOT_FLASH_MMC
Date: Sun, 5 Feb 2023 17:54:12 -0700 [thread overview]
Message-ID: <20230206005537.254541-86-sjg@chromium.org> (raw)
In-Reply-To: <20230206005537.254541-27-sjg@chromium.org>
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>
---
(no changes since v1)
drivers/fastboot/fb_command.c | 4 ++--
drivers/fastboot/fb_common.c | 2 +-
drivers/fastboot/fb_getvar.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
index 67a94798287..5a3fb69b3f7 100644
--- a/drivers/fastboot/fb_command.c
+++ b/drivers/fastboot/fb_command.c
@@ -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))
diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
index 7563650d07d..57b6182c46a 100644
--- a/drivers/fastboot/fb_common.c
+++ b/drivers/fastboot/fb_common.c
@@ -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)
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
index bcef8f866f3..de4879dadfb 100644
--- a/drivers/fastboot/fb_getvar.c
+++ b/drivers/fastboot/fb_getvar.c
@@ -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)
--
2.39.1.519.gcb327c4b5f-goog
next prev parent reply other threads:[~2023-02-06 0:57 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-06 0:53 [PATCH v2 026/169] Correct SPL use of ARCH_VERSAL Simon Glass
2023-02-06 0:53 ` [PATCH v2 036/169] Correct SPL uses of CMD_BOOTEFI_BOOTMGR Simon Glass
2023-02-06 23:54 ` Heinrich Schuchardt
2023-02-07 0:00 ` Tom Rini
2023-02-07 7:39 ` Heinrich Schuchardt
2023-02-07 14:50 ` Tom Rini
2023-02-07 15:31 ` Simon Glass
2023-02-07 16:26 ` Tom Rini
2023-02-08 8:55 ` Heinrich Schuchardt
2023-02-06 0:53 ` [PATCH v2 065/169] Correct SPL uses of DISPLAY_AER_BRIEF Simon Glass
2023-02-06 0:54 ` [PATCH v2 075/169] Correct SPL use of EFI_MM_COMM_TEE Simon Glass
2023-02-06 23:57 ` Heinrich Schuchardt
2023-02-06 0:54 ` [PATCH v2 083/169] Correct SPL uses of FASTBOOT Simon Glass
2023-02-06 0:54 ` Simon Glass [this message]
2023-02-06 0:54 ` [PATCH v2 086/169] Correct SPL uses of FASTBOOT_FLASH_NAND Simon Glass
2023-02-06 0:54 ` [PATCH v2 089/169] Correct SPL uses of FEC_MXC Simon Glass
2023-02-06 0:54 ` [PATCH v2 115/169] Correct SPL uses of OF_BOARD Simon Glass
2023-02-06 0:54 ` [PATCH v2 117/169] Correct SPL use of PANEL Simon Glass
2023-02-06 0:54 ` [PATCH v2 123/169] Correct SPL use of PHY_CADENCE_SIERRA Simon Glass
2023-02-06 0:54 ` [PATCH v2 124/169] Correct SPL use of PHY_CADENCE_TORRENT Simon Glass
2023-02-06 0:54 ` [PATCH v2 126/169] Correct SPL uses of PMIC_STPMIC1 Simon Glass
2023-02-06 0:54 ` [PATCH v2 132/169] Correct SPL uses of ROCKCHIP_OTP Simon Glass
2023-02-06 0:55 ` [PATCH v2 136/169] Correct SPL uses of SAVE_PREV_BL_INITRAMFS_START_ADDR Simon Glass
2023-02-06 0:55 ` [PATCH v2 137/169] Correct SPL uses of SEC_FIRMWARE_ARMV8_PSCI Simon Glass
2023-02-09 1:19 ` Tom Rini
2023-02-12 23:14 ` Simon Glass
2023-02-06 0:55 ` [PATCH v2 141/169] Correct SPL use of SPI_FLASH_BAR Simon Glass
2023-02-09 1:30 ` Tom Rini
2023-02-12 23:14 ` Simon Glass
2023-02-06 0:55 ` [PATCH v2 142/169] Correct SPL uses of SPI_FLASH_MACRONIX Simon Glass
2023-02-09 17:05 ` Tom Rini
2023-02-12 23:15 ` Simon Glass
2023-02-06 0:55 ` [PATCH v2 143/169] Correct SPL use of SPLASH_SOURCE Simon Glass
2023-02-06 0:55 ` [PATCH v2 149/169] Correct SPL uses of TARGET_LX2160ARDB Simon Glass
2023-02-06 0:55 ` [PATCH v2 154/169] Correct SPL uses of TEN64_CONTROLLER Simon Glass
2023-02-06 0:55 ` [PATCH v2 161/169] Correct SPL uses of USB_KEYBOARD Simon Glass
2023-02-06 0:55 ` [PATCH v2 165/169] Correct SPL use of VIDEO_BPP16 Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230206005537.254541-86-sjg@chromium.org \
--to=sjg@chromium.org \
--cc=mkorpershoek@baylibre.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.