s3c24x0 white-space clean-up part 1
PATCH 1/4 s3c24x0 white-space clean-up part 1
Cleans up white-space in the s3c24x0 files, including removing any dead code but excluding code style or line length changes.
Due to the size of the changes this change is split into two patches.
Signed-off-by Kevin Morfitt <[email protected]>
---
checkpatch.pl reports no white-space errors.
board/mpl/vcma9/vcma9.h | 38 +- board/trab/trab_fkt.c | 970 +++++++++++++++++++++++------------------------ board/trab/tsc2000.c | 183 +++++---- board/trab/tsc2000.h | 16 +- board/trab/vfd.c | 476 +++++++++++++---------- 5 files changed, 857 insertions(+), 826 deletions(-)
board/mpl/vcma9/vcma9.h +18 -20
@@ -27,8 +27,7 @@#include <asm/arch/s3c24x0_cpu.h> -extern int mem_test (unsigned long start,unsigned long ramsize,int mode); - +extern int mem_test (unsigned long start,unsigned long ramsize,int mode);void print_vcma9_info (void );#if defined(CONFIG_CMD_NAND )
@@ -69,13 +68,12 @@ static inline void NF_SetCE(NFCE_STATE s)struct s3c2410_nand *const nand =s3c2410_get_base_nand ();switch (s) { -case NFCE_LOW : - nand->NFCONF &= ~(1 <<11 ); -break ; - -case NFCE_HIGH : - nand->NFCONF |= (1 <<11 ); -break ; +case NFCE_LOW : + nand->NFCONF &= ~(1 <<11 ); +break ; +case NFCE_HIGH : + nand->NFCONF |= (1 <<11 ); +break ; } }
@@ -83,7 +81,7 @@ static inline void NF_WaitRB(void) {struct s3c2410_nand *const nand =s3c2410_get_base_nand (); -while (!(nand->NFSTAT & (1 <<0 ))); +while (!(nand->NFSTAT & (1 <<0 ))); }static inline void NF_Write (u8 data)
@@ -97,34 +95,34 @@ static inline u8 NF_Read(void) {struct s3c2410_nand *const nand =s3c2410_get_base_nand (); -return (nand->NFDATA); +return (nand->NFDATA); }static inline void NF_Init_ECC (void ) {struct s3c2410_nand *const nand =s3c2410_get_base_nand (); - nand->NFCONF |= (1 <<12 ); + nand->NFCONF |= (1 <<12 ); }static inline u32 NF_Read_ECC (void ) {struct s3c2410_nand *const nand =s3c2410_get_base_nand (); -return (nand->NFECC); +return (nand->NFECC); }#endif /* VCMA9 PLD regsiters */ typedef struct { -u8 ID; -u8 NIC; -u8 CAN; -u8 MISC; -u8 GPCD; -u8 BOARD; -u8 SDRAM; +u8 ID; +u8 NIC; +u8 CAN; +u8 MISC; +u8 GPCD; +u8 BOARD; +u8 SDRAM; }/*__attribute__((__packed__))*/ VCMA9_PLD ;#define VCMA9_PLD_BASE 0x2C000100
board/trab/trab_fkt.c +466 -504
1,706 lines not on this page · raw message
board/trab/tsc2000.c +100 -83
356 lines not on this page · raw message
board/trab/tsc2000.h +7 -9
@@ -114,18 +114,17 @@#define ERROR_BATTERY 220/* must be adjusted, if R68 is changed on TRAB */ void tsc2000_write (unsigned short ,unsigned short ); -unsigned short tsc2000_read (unsigned short ); -u16 tsc2000_read_channel (unsigned int ); -void tsc2000_set_mux (unsigned int ); -void tsc2000_set_range (unsigned int ); -void tsc2000_reg_init (void ); -s32 tsc2000_contact_temp (void ); -void spi_wait_transmit_done (void ); +unsigned short tsc2000_read (unsigned short ); +u16 tsc2000_read_channel (unsigned int ); +void tsc2000_set_mux (unsigned int ); +void tsc2000_set_range (unsigned int ); +void tsc2000_reg_init (void ); +s32 tsc2000_contact_temp (void ); +void spi_wait_transmit_done (void );void tsc2000_spi_init (void );int tsc2000_interpolate (long value,long data[][2 ],long *result);void adc_wait_conversion_done (void ); -static inline void SET_CS_TOUCH (void ) {struct s3c24x0_gpio *const gpio =s3c24x0_get_base_gpio ();
@@ -133,7 +132,6 @@ static inline void SET_CS_TOUCH(void) gpio->PDDAT &=0x5FF ; } -static inline void CLR_CS_TOUCH (void ) {struct s3c24x0_gpio *const gpio =s3c24x0_get_base_gpio ();
board/trab/vfd.c +266 -210
639 lines not on this page · raw message
Signature · 1 line
1.6.1.2