aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-11-28 00:02:56 +0000
committerAndre Przywara <andre.przywara@arm.com>2022-12-14 22:31:33 +0000
commit64531496f990c2a63211c72b953dfc084b4c2589 (patch)
tree1703fef2feb486e971c760b79e128c6b8a5d8b10 /board
parenteeaca6ac27ccfd75956c1ad6ca27d9b9caf62c96 (diff)
downloadu-boot-64531496f990c2a63211c72b953dfc084b4c2589.zip
u-boot-64531496f990c2a63211c72b953dfc084b4c2589.tar.gz
u-boot-64531496f990c2a63211c72b953dfc084b4c2589.tar.bz2
sunxi: board: annotate #endif lines
The legacy Allwinner code is cluttered with #ifdef's, some of them even nested, which makes the code hard to read and error prone. Eventually we will get rid of most of them, but for now let's at least annotate the #endif lines with the corresponding symbol the bracket started with. Reviewed-by: Samuel Holland <samuel@sholland.org> Tested-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/board.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 4fe749f..827e545 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -351,7 +351,7 @@ void board_nand_init(void)
sunxi_nand_init();
#endif
}
-#endif
+#endif /* CONFIG_NAND_SUNXI */
#ifdef CONFIG_MMC
static void mmc_pinmux_setup(int sdc)
@@ -554,7 +554,7 @@ int mmc_get_env_dev(void)
}
}
#endif
-#endif
+#endif /* CONFIG_MMC */
#ifdef CONFIG_SPL_BUILD
@@ -670,7 +670,7 @@ void sunxi_board_init(void)
else
printf("Failed to set core voltage! Can't set CPU frequency\n");
}
-#endif
+#endif /* CONFIG_SPL_BUILD */
#ifdef CONFIG_USB_GADGET
int g_dnl_board_usb_cable_connected(void)
@@ -699,7 +699,7 @@ int g_dnl_board_usb_cable_connected(void)
return sun4i_usb_phy_vbus_detect(&phy);
}
-#endif
+#endif /* CONFIG_USB_GADGET */
#ifdef CONFIG_SERIAL_TAG
void get_board_serial(struct tag_serialnr *serialnr)
@@ -928,7 +928,6 @@ int ft_board_setup(void *blob, struct bd_info *bd)
}
#ifdef CONFIG_SPL_LOAD_FIT
-
static void set_spl_dt_name(const char *name)
{
struct boot_file_head *spl = get_spl_header(SPL_ENV_HEADER_VERSION);
@@ -996,4 +995,4 @@ int board_fit_config_name_match(const char *name)
return ret;
}
-#endif
+#endif /* CONFIG_SPL_LOAD_FIT */