projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
310d665
)
freescale: imx8mm_evk: Use IS_ENABLED instead of #ifdef
author
Tommaso Merciai
<tomm.merciai@gmail.com>
Sun, 26 Dec 2021 17:23:11 +0000
(18:23 +0100)
committer
Stefano Babic
<sbabic@denx.de>
Fri, 18 Feb 2022 17:12:23 +0000
(18:12 +0100)
Use IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) to make the code
more readable and fix checkpatch.pl warning
Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
board/freescale/imx8mm_evk/imx8mm_evk.c
patch
|
blob
|
history
diff --git
a/board/freescale/imx8mm_evk/imx8mm_evk.c
b/board/freescale/imx8mm_evk/imx8mm_evk.c
index ab55135a97202762d261847d69cb7bcc35f8f416..e0975fcda7050942a0b764363fa4cd2f5453d982 100644
(file)
--- a/
board/freescale/imx8mm_evk/imx8mm_evk.c
+++ b/
board/freescale/imx8mm_evk/imx8mm_evk.c
@@
-60,9
+60,10
@@
int board_mmc_get_env_dev(int devno)
int board_late_init(void)
{
-#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
- env_set("board_name", "EVK");
- env_set("board_rev", "iMX8MM");
-#endif
+ if (IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG)) {
+ env_set("board_name", "EVK");
+ env_set("board_rev", "iMX8MM");
+ }
+
return 0;
}