1 From c425423a075718eac625c78351fa5907d4f3a9de Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <noltari@gmail.com>
3 Date: Mon, 8 Jun 2020 12:18:28 +0200
4 Subject: [PATCH] MIPS: BCM63xx: add endif comments
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 There are plenty of ifdefs in board_bcm963xx.c without endif comments.
10 Let's make the code easier to follow by adding proper comments.
12 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
13 Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
15 arch/mips/bcm63xx/boards/board_bcm963xx.c | 33 +++++++++++------------
16 1 file changed, 15 insertions(+), 18 deletions(-)
18 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
19 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
20 @@ -67,7 +67,7 @@ static struct board_info __initdata boar
21 .ephy_reset_gpio = 36,
22 .ephy_reset_gpio_flags = GPIOF_INIT_HIGH,
25 +#endif /* CONFIG_BCM63XX_CPU_3368 */
29 @@ -115,7 +115,7 @@ static struct board_info __initdata boar
34 +#endif /* CONFIG_BCM63XX_CPU_6328 */
38 @@ -204,7 +204,7 @@ static struct board_info __initdata boar
43 +#endif /* CONFIG_BCM63XX_CPU_6338 */
47 @@ -216,7 +216,7 @@ static struct board_info __initdata boar
52 +#endif /* CONFIG_BCM63XX_CPU_6345 */
56 @@ -464,7 +464,6 @@ static struct board_info __initdata boar
61 static struct board_info __initdata board_DV201AMR = {
63 .expected_cpu_id = 0x6348,
64 @@ -505,7 +504,7 @@ static struct board_info __initdata boar
69 +#endif /* CONFIG_BCM63XX_CPU_6348 */
73 @@ -530,7 +529,6 @@ static struct board_info __initdata boar
74 .force_duplex_full = 1,
81 @@ -654,7 +652,7 @@ static struct board_info __initdata boar
86 +#endif /* CONFIG_BCM63XX_CPU_6358 */
90 @@ -662,17 +660,17 @@ static struct board_info __initdata boar
91 static const struct board_info __initconst *bcm963xx_boards[] = {
92 #ifdef CONFIG_BCM63XX_CPU_3368
95 +#endif /* CONFIG_BCM63XX_CPU_3368 */
96 #ifdef CONFIG_BCM63XX_CPU_6328
99 +#endif /* CONFIG_BCM63XX_CPU_6328 */
100 #ifdef CONFIG_BCM63XX_CPU_6338
104 +#endif /* CONFIG_BCM63XX_CPU_6338 */
105 #ifdef CONFIG_BCM63XX_CPU_6345
108 +#endif /* CONFIG_BCM63XX_CPU_6345 */
109 #ifdef CONFIG_BCM63XX_CPU_6348
112 @@ -682,14 +680,13 @@ static const struct board_info __initcon
118 +#endif /* CONFIG_BCM63XX_CPU_6348 */
119 #ifdef CONFIG_BCM63XX_CPU_6358
125 +#endif /* CONFIG_BCM63XX_CPU_6358 */
129 @@ -728,7 +725,7 @@ int bcm63xx_get_fallback_sprom(struct ss
134 +#endif /* CONFIG_SSB_PCIHOST */
137 * return board name for /proc/cpuinfo
138 @@ -807,7 +804,7 @@ void __init board_prom_init(void)
139 if (BCMCPU_IS_6348())
140 val |= GPIO_MODE_6348_G2_PCI;
143 +#endif /* CONFIG_PCI */
145 if (board.has_pccard) {
146 if (BCMCPU_IS_6348())
147 @@ -892,7 +889,7 @@ int __init board_register_devices(void)
148 &bcm63xx_get_fallback_sprom) < 0)
149 pr_err("failed to register fallback SPROM\n");
152 +#endif /* CONFIG_SSB_PCIHOST */
154 bcm63xx_spi_register();