Skip to contentSkip to conversation

Coding Style cleanup

PATCH New Wolfgang Denk 2 participants 5 messages Dec 19, 2011 – Dec 20, 2011

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

PATCH 1/1 Coding Style cleanup

Fix trailing white space, indentation by spaces instead of TABs, excessive blank lines, trailing blank lines.

---
 arch/arm/include/asm/arch-davinci/da8xx-fb.h |    1 -
 arch/sh/lib/ashrsi3.S                        |    2 +-
 doc/README.menu                              |    2 +-
 doc/README.p3060qds                          |    3 +-
 doc/README.pxe                               |   54 +++++++++++++-------------
 doc/README.sh7757lcr                         |    7 +--
 drivers/net/sh_eth.h                         |    1 -
 drivers/usb/host/ehci-mx5.c                  |    2 -
 include/configs/P2020COME.h                  |    8 +---
 9 files changed, 34 insertions(+), 46 deletions(-)
arch/arm/include/asm/arch-davinci/da8xx-fb.h +0 -1
index 6d2327c..a9181d8 100644
@@ -123,4 +123,3 @@ struct lcd_sync_arg {
 void da8xx_video_init(const struct da8xx_panel *panel, int bits_pixel);
 
 #endif  /* ifndef DA8XX_FB_H */
-
arch/sh/lib/ashrsi3.S +1 -1
index 6f3cf46..2d68b27 100644
@@ -56,7 +56,7 @@ Boston, MA 02110-1301, USA.  */
 !
 
 	.global	__ashrsi3
-	
+
 	.align	2
 __ashrsi3:
 	mov	#31,r0
doc/README.menu +1 -1
index 1259c6a..0dad6a2 100644
@@ -97,7 +97,7 @@ char *pick_a_tool(void)
 			printf("failed to add item!");
 			menu_destroy(m);
 			return NULL;
-                }
+		}
 	}
 
 	if (menu_get_choice(m, (void **)&tool) != 1)
doc/README.p3060qds +1 -2
index 2ed49ca..ec62798 100644
@@ -43,7 +43,7 @@ I2C:
  * I2C1_CH0: EEPROM AT24C64(0x50) RCW, AT24C02(0x51) DDR SPD,
 	     AT24C02(0x53) DDR SPD, AT24C02(0x57) SystemID, RTC DS3232(0x68)
  * I2C1_CH1: 1588 RiserCard(0x55), HSLB Testport, TempMon
-             ADT7461(0x4C), SerDesMux DS64MB201(0x51/59/5C/5D)
+	     ADT7461(0x4C), SerDesMux DS64MB201(0x51/59/5C/5D)
  * I2C1_CH2: VDD/GVDD/GIDD ZL6100 (0x21/0x22/0x23/0x24/0x40)
  * I2C1_CH3: OCM CFG AT24C02(0x55), OCM IPL AT24C64(0x56)
  * I2C1_CH4: PCIe SLOT1
@@ -108,4 +108,3 @@ Place a linux uImage in the TFTP disk area.
 	tftp 2000000 rootfs.ext2.gz.uboot
 	tftp 3000000 p3060rdb.dtb
 	bootm 1000000 2000000 3000000
-
doc/README.pxe +27 -27

84 lines not on this page · raw message

doc/README.sh7757lcr +3 -4
index 109f715..37c1a7a 100644
@@ -67,11 +67,10 @@ Update SPI ROM:
 ============================
 
 1. Copy u-boot image to RAM area.
-2. Probe SPI device. 
-   => sf probe 0 
+2. Probe SPI device.
+   => sf probe 0
    8192 KiB M25P64 at 0:0 is now current device
 3. Erase SPI ROM.
-   => sf erase 0 80000  
+   => sf erase 0 80000
 4. Write u-boot image to SPI ROM.
    => sf write 0x89000000 0 80000
-
drivers/net/sh_eth.h +0 -1
index dd6a422..0692f8b 100644
@@ -435,4 +435,3 @@ enum RPADIR_BIT {
 enum FIFO_SIZE_BIT {
 	FIFO_SIZE_T = 0x00000700, FIFO_SIZE_R = 0x00000007,
 };
-
drivers/usb/host/ehci-mx5.c +0 -2
index 68a673e..58cdcbe 100644
@@ -251,5 +251,3 @@ int ehci_hcd_stop(void)
 {
 	return 0;
 }
-
-
include/configs/P2020COME.h +1 -7
index db88b68..cf20d2b 100644
@@ -103,12 +103,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_SYS_MEMTEST_END		0x1fffffff
 #define CONFIG_PANIC_HANG	/* do not reset board on panic */
 
-
-
-
-
-
-
  /*
   * Config the L2 Cache as L2 SRAM
   */
@@ -316,7 +310,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define _IO_BASE		0x00000000
 #endif
 
-
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
 #define CONFIG_DOS_PARTITION
 
@@ -563,6 +556,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 	"tftp $fdtaddr $tftppath/$fdtfile;"				\
 	"bootm $loadaddr - $fdtaddr"
 
+
 #define CONFIG_RAMBOOTCOMMAND						\
 	"setenv bootargs root=/dev/ram rw "				\
 	"console=$consoledev,$baudrate $othbootargs;"			\
Signature · 1 line
1.7.7.4
#1 lore raw

PATCH 1/1 Coding Style cleanup

Quoted 11 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Wolfgang Denk
Sent: Monday, December 19, 2011 4:41 PM
To: u-boot at lists.denx.de
Subject: [U-Boot] [PATCH] Coding Style cleanup

Fix trailing white space, indentation by spaces instead of TABs, excessive blank lines, trailing blank lines.

[snip]...[snip]

Review extern unsigned long · line 562

Quoted 8 lines
(quoted diff) +1 -0
@@ -563,6 +556,7 @@ extern unsigned long 
 get_board_sys_clk(unsigned long dummy);
 	"tftp $fdtaddr $tftppath/$fdtfile;"			
 	\
 	"bootm $loadaddr - $fdtaddr"
 
+
 #define CONFIG_RAMBOOTCOMMAND				

This appears to be a stray addition.

~sanjeev

[snip]...[snip]

#2 lore raw

PATCH 1/1 Coding Style cleanup

Dear "Premi, Sanjeev",

Quoted 11 lines · In message <[email protected]> you wrote:
Quoted 9 lines
(quoted diff) +0 -0
@@ -563,6 +556,7 @@ extern unsigned long=20
 get_board_sys_clk(unsigned long dummy);
 	"tftp $fdtaddr $tftppath/$fdtfile;"		=09
 	\
 	"bootm $loadaddr - $fdtaddr"

=20
+
#define CONFIG_RAMBOOTCOMMAND =09

This appears to be a stray addition.

...which appears to be added by your mailer. I don;t see it in the patch.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When the ax entered the forest, the trees said, "The handle is one of
us!"                                               -- Turkish proverb
#3 lore raw

PATCH 1/1 Coding Style cleanup

Quoted 23 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Monday, December 19, 2011 9:07 PM
To: Premi, Sanjeev
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] Coding Style cleanup

Dear "Premi, Sanjeev",

In message

Quoted 11 lines · <[email protected]> you wrote:
Quoted 9 lines
(quoted diff) +0 -0
@@ -563,6 +556,7 @@ extern unsigned long=20
 get_board_sys_clk(unsigned long dummy);
 	"tftp $fdtaddr $tftppath/$fdtfile;"		=09
 	\
 	"bootm $loadaddr - $fdtaddr"

=20
+
#define CONFIG_RAMBOOTCOMMAND =09

This appears to be a stray addition.

Quoted 2 lines

...which appears to be added by your mailer. I don;t see it in the patch.

I was referring to the extra line added by the "+" sign.

[quoting from original patch]
@@ -563,6 +556,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
"tftp $fdtaddr $tftppath/$fdtfile;" \
"bootm $loadaddr - $fdtaddr"

+
#define CONFIG_RAMBOOTCOMMAND \
"setenv bootargs root=/dev/ram rw " \
"console=$consoledev,$baudrate $othbootargs;" \
[/quote]

~sanjeev

Quoted 12 lines

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When the ax entered the forest, the trees said, "The handle is one of
us!"                                               -- Turkish proverb
#4 lore raw

PATCH 1/1 Coding Style cleanup

Dear Sanjeev,

Quoted 2 lines · In message <[email protected]> you wrote:

I was referring to the extra line added by the "+" sign.

Ah, I see. Indeed. Strange.

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All repairs tend to destroy the structure, to  increase  the  entropy
and  disorder  of the system. Less and less effort is spent on fixing
original design flaws; more and more is spent on fixing flaws  intro-
duced by earlier fixes.       - Fred Brooks, "The Mythical Man Month"