Skip to contentSkip to conversation

stm32mp: stm32prog: Normalise newlines

PATCH In review William Grant 3 participants 3 messages Oct 13, 2021 – Nov 10, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stm32mp: stm32prog: Normalise newlines

The missing trailing newline could confuse check-config.sh if the definition of an option was on the first line of the next file that find(1) happened to return.

---
 arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig +1 -2
index f4c0d18d4d..dd166a1f91 100644
@@ -1,4 +1,3 @@
-
 config CMD_STM32PROG
 	bool "command stm32prog for STM32CudeProgrammer"
 	select DFU
@@ -31,4 +30,4 @@ config CMD_STM32PROG_SERIAL
 	help
 		activate the command "stm32prog serial" for STM32MP soc family
 		with the tools STM32CubeProgrammer using U-Boot serial device
-		and UART protocol.
\ No newline at end of file
+		and UART protocol.
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · William Grant

The missing trailing newline could confuse check-config.sh if the definition of an option was on the first line of the next file that find(1) happened to return.

---
  arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig +0 -1
index f4c0d18d4d..dd166a1f91 100644
@@ -1,4 +1,3 @@
-
  config CMD_STM32PROG
  	bool "command stm32prog for STM32CudeProgrammer"
  	select DFU

arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig config CMD_STM32PROG_SERIAL · line 33

Quoted 6 lines
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig +1 -1
@@ -31,4 +30,4 @@ config CMD_STM32PROG_SERIAL
  	help
  		activate the command "stm32prog serial" for STM32MP soc family
  		with the tools STM32CubeProgrammer using U-Boot serial device
-		and UART protocol.
\ No newline at end of file
+		and UART protocol.

Thanks
Patrick

#2 lore raw

Hi Patrick

Quoted 31 lines · Patrick DELAUNAY
Quoted 19 lines · William Grant

The missing trailing newline could confuse check-config.sh if the definition of an option was on the first line of the next file that find(1) happened to return.

---
  arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig | 3 +--

  1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig +0 -1
index f4c0d18d4d..dd166a1f91 100644
@@ -1,4 +1,3 @@
-

  config CMD_STM32PROG
      bool "command stm32prog for STM32CudeProgrammer" select DFU

arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig +0 -0
@@ -31,4 +30,4 @@ config CMD_STM32PROG_SERIAL
Quoted 6 lines

      help
          activate the command "stm32prog serial" for STM32MP soc family with the tools STM32CubeProgrammer using U-Boot serial device -        and UART protocol.
\ No newline at end of file
+        and UART protocol.

Quoted 3 lines

Thanks
Patrick

Applied on u-boot-stm/master
Thanks