summaryrefslogtreecommitdiff
path: root/board/sunxi
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-06-09 21:26:39 +0200
committerTom Rini <[email protected]>2025-06-20 12:15:08 -0600
commit0f44d5549ed814744b95b2450fbacfa14192587d (patch)
tree06a58b3990c592f4e6b306a176b1df032b5d2041 /board/sunxi
parent123682c7651d187113455cb01d396825c08619c4 (diff)
env: Rename SYS_MMC_ENV_DEV to ENV_MMC_DEVICE_INDEX
Rename the variable and add ENV_ prefix, so that all configuration options which are related to environment would have an CONFIG_ENV_ prefix. No functional change. Use ENV_MMC_DEVICE_INDEX to clarify this is the SD/MMC device index, a number, as enumerated by U-Boot. Update the help text accordingly. Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'board/sunxi')
-rw-r--r--board/sunxi/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index ac9cefc6eac..feec95658a2 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -516,7 +516,7 @@ int board_mmc_init(struct bd_info *bis)
return 0;
}
-#ifdef CONFIG_SYS_MMC_ENV_DEV
+#ifdef CONFIG_ENV_MMC_DEVICE_INDEX
int mmc_get_env_dev(void)
{
switch (sunxi_get_boot_device()) {
@@ -525,7 +525,7 @@ int mmc_get_env_dev(void)
case BOOT_DEVICE_MMC2:
return 1;
default:
- return CONFIG_SYS_MMC_ENV_DEV;
+ return CONFIG_ENV_MMC_DEVICE_INDEX;
}
}
#endif