Skip to contentSkip to conversation

udoo: neo: Fix indentation

PATCH New Fabio Estevam 2 participants 2 messages Jan 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udoo: neo: Fix indentation

From: Fabio Estevam <[email protected]>

The standard way is to put ifdef/endif in the very first column.

---
 board/udoo/neo/neo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/udoo/neo/neo.c +2 -2
index 688b522..288674a 100644
@@ -349,9 +349,9 @@ int board_init(void)
 	/* Active high for ncp692 */
 	gpio_direction_output(IMX_GPIO_NR(4, 16) , 1);
 
-	#ifdef CONFIG_SYS_I2C_MXC
+#ifdef CONFIG_SYS_I2C_MXC
 	setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
-	#endif
+#endif
 
 	return 0;
 }
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 udoo: neo: Fix indentation

Quoted 16 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The standard way is to put ifdef/endif in the very first column.

---
 board/udoo/neo/neo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/udoo/neo/neo.c +0 -0
index 688b522..288674a 100644
@@ -349,9 +349,9 @@ int board_init(void)
 	/* Active high for ncp692 */

board/udoo/neo/neo.c int board_init(void) · line 357

Quoted 10 lines
board/udoo/neo/neo.c +2 -2
 	gpio_direction_output(IMX_GPIO_NR(4, 16) , 1);
 
-	#ifdef CONFIG_SYS_I2C_MXC
+#ifdef CONFIG_SYS_I2C_MXC
 	setup_i2c(0, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1);
-	#endif
+#endif
 
 	return 0;
 }

Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================