dm: serial: Minor coding style cleanup of some comments
PATCH 1/1 dm: serial: Minor coding style cleanup of some comments
Fix incorrect comment alignments.
Signed-off-by Stefan Roese <[email protected]>
Cc Simon Glass <[email protected]>
--- drivers/serial/serial-uclass.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/serial/serial-uclass.c +10 -10
@@ -64,9 +64,9 @@ static void serial_find_console_or_panic(void) }/* -* If the console is not marked to be bound before relocation, -* bind it anyway. -*/ +* If the console is not marked to be bound before relocation, +* bind it anyway. +*/ if (node >0 && !lists_bind_fdt (gd->dm_root, blob, node, &dev)) {if (!device_probe (dev)) {
@@ -77,13 +77,13 @@ static void serial_find_console_or_panic(void) }if (!SPL_BUILD || !CONFIG_IS_ENABLED (OF_CONTROL ) || !blob) {/* -* Try to use CONFIG_CONS_INDEX if available (it is numbered -* from 1!). -* -* Failing that, get the device with sequence number 0, or in -* extremis just the first serial device we can find. But we -* insist on having a console (even if it is silent). -*/ +* Try to use CONFIG_CONS_INDEX if available (it is numbered +* from 1!). +* +* Failing that, get the device with sequence number 0, or in +* extremis just the first serial device we can find. But we +* insist on having a console (even if it is silent). +*/ #ifdef CONFIG_CONS_INDEX #define INDEX (CONFIG_CONS_INDEX - 1)#else
Signature · 1 line
2.6.3
PATCH 1/1 dm: serial: Minor coding style cleanup of some comments
Quoted 37 lines · Stefan Roese
Fix incorrect comment alignments.
Signed-off-by Stefan Roese <[email protected]>Cc Simon Glass <[email protected]>--- drivers/serial/serial-uclass.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)drivers/serial/serial-uclass.c +4
-10@@ -64,9 +64,9 @@ static void serial_find_console_or_panic(void) }/* -* If the console is not marked to be bound before relocation, -* bind it anyway. -*/ +* If the console is not marked to be bound before relocation, +* bind it anyway. +*/ if (node >0 && !lists_bind_fdt (gd->dm_root, blob, node, &dev)) {if (!device_probe (dev)) {@@ -77,13 +77,13 @@ static void serial_find_console_or_panic(void) }if (!SPL_BUILD || !CONFIG_IS_ENABLED (OF_CONTROL ) || !blob) {/* -* Try to use CONFIG_CONS_INDEX if available (it is numbered -* from 1!). -* -* Failing that, get the device with sequence number 0, or in -* extremis just the first serial device we can find. But we -* insist on having a console (even if it is silent). -*/ +* Try to use CONFIG_CONS_INDEX if available (it is numbered
drivers/serial/serial-uclass.c static void serial_find_console_or_panic(void)
Quoted 10 lines
drivers/serial/serial-uclass.c +6
-1+* from 1!). +* +* Failing that, get the device with sequence number 0, or in +* extremis just the first serial device we can find. But we +* insist on having a console (even if it is silent). +*/ #ifdef CONFIG_CONS_INDEX #define INDEX (CONFIG_CONS_INDEX - 1)#else --
Reviewed-by Bin Meng <[email protected]>
PATCH 1/1 dm: serial: Minor coding style cleanup of some comments
Quoted 42 lines · Bin Meng
Quoted 41 lines · Stefan Roese
Fix incorrect comment alignments.
Signed-off-by Stefan Roese <[email protected]>Cc Simon Glass <[email protected]>--- drivers/serial/serial-uclass.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)drivers/serial/serial-uclass.c +8
-10@@ -64,9 +64,9 @@ static void serial_find_console_or_panic(void) }/* -* If the console is not marked to be bound before relocation, -* bind it anyway. -*/ +* If the console is not marked to be bound before relocation, +* bind it anyway. +*/ if (node >0 && !lists_bind_fdt (gd->dm_root, blob, node, &dev)) {if (!device_probe (dev)) {@@ -77,13 +77,13 @@ static void serial_find_console_or_panic(void) }if (!SPL_BUILD || !CONFIG_IS_ENABLED (OF_CONTROL ) || !blob) {/* -* Try to use CONFIG_CONS_INDEX if available (it is numbered -* from 1!). -* -* Failing that, get the device with sequence number 0, or in -* extremis just the first serial device we can find. But we -* insist on having a console (even if it is silent). -*/ +* Try to use CONFIG_CONS_INDEX if available (it is numbered +* from 1!). +* +* Failing that, get the device with sequence number 0, or in +* extremis just the first serial device we can find. But we
Quoted 8 lines
drivers/serial/serial-uclass.c static void serial_find_console_or_panic(void)
Quoted 6 lines
drivers/serial/serial-uclass.c +2
-1+* insist on having a console (even if it is silent). +*/ #ifdef CONFIG_CONS_INDEX #define INDEX (CONFIG_CONS_INDEX - 1)#else --Reviewed-by Bin Meng <[email protected]>
Acked-by Simon Glass <[email protected]>
PATCH 1/1 dm: serial: Minor coding style cleanup of some comments
Applied to u-boot-dm, thanks!