From 4b0708093e15b412296328bf81325cf9b69fe512 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Thu, 14 Aug 2008 14:41:06 +0200 Subject: Coding Style cleanup, update CHANGELOG Signed-off-by: Wolfgang Denk --- include/configs/MPC8313ERDB.h | 30 +++++++++++++++--------------- include/linux/mtd/inftl-user.h | 2 -- include/linux/mtd/mtd-abi.h | 16 ++++++++-------- include/linux/mtd/mtd.h | 8 ++++---- include/linux/mtd/nftl-user.h | 4 ++-- include/linux/mtd/nftl.h | 14 +++++++------- include/nand.h | 4 ++-- 7 files changed, 38 insertions(+), 40 deletions(-) (limited to 'include') diff --git a/include/configs/MPC8313ERDB.h b/include/configs/MPC8313ERDB.h index a4c4240..95ba840 100644 --- a/include/configs/MPC8313ERDB.h +++ b/include/configs/MPC8313ERDB.h @@ -64,7 +64,7 @@ #define CFG_IMMR 0xE0000000 #if defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) -#define CONFIG_DEFAULT_IMMR CFG_IMMR +#define CONFIG_DEFAULT_IMMR CFG_IMMR #endif #define CFG_MEMTEST_START 0x00001000 @@ -243,7 +243,7 @@ #define CFG_NAND_U_BOOT_OFFS 16384 #define CFG_NAND_U_BOOT_RELOC 0x00010000 -#define CFG_NAND_BR_PRELIM ( CFG_NAND_BASE \ +#define CFG_NAND_BR_PRELIM ( CFG_NAND_BASE \ | (2< /* these info are used in ReplUnitTable */ -#define BLOCK_NIL 0xffff /* last block of a chain */ -#define BLOCK_FREE 0xfffe /* free block */ +#define BLOCK_NIL 0xffff /* last block of a chain */ +#define BLOCK_FREE 0xfffe /* free block */ #define BLOCK_NOTEXPLORED 0xfffd /* non explored block, only used during mounting */ -#define BLOCK_RESERVED 0xfffc /* bios block or bad block */ +#define BLOCK_RESERVED 0xfffc /* bios block or bad block */ struct NFTLrecord { struct mtd_blktrans_dev mbd; @@ -28,15 +28,15 @@ struct NFTLrecord { unsigned char sectors; unsigned short cylinders; __u16 numvunits; - __u16 lastEUN; /* should be suppressed */ + __u16 lastEUN; /* should be suppressed */ __u16 numfreeEUNs; __u16 LastFreeEUN; /* To speed up finding a free EUN */ int head,sect,cyl; __u16 *EUNtable; /* [numvunits]: First EUN for each virtual unit */ __u16 *ReplUnitTable; /* [numEUNs]: ReplUnitNumber for each */ - unsigned int nb_blocks; /* number of physical blocks */ - unsigned int nb_boot_blocks; /* number of blocks used by the bios */ - struct erase_info instr; + unsigned int nb_blocks; /* number of physical blocks */ + unsigned int nb_boot_blocks; /* number of blocks used by the bios */ + struct erase_info instr; struct nand_ecclayout oobinfo; }; diff --git a/include/nand.h b/include/nand.h index 4c2b76d..3296e10 100644 --- a/include/nand.h +++ b/include/nand.h @@ -109,9 +109,9 @@ struct nand_erase_options { typedef struct nand_erase_options nand_erase_options_t; int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length, - u_char *buffer); + u_char *buffer); int nand_write_skip_bad(nand_info_t *nand, size_t offset, size_t *length, - u_char *buffer); + u_char *buffer); int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts); #define NAND_LOCK_STATUS_TIGHT 0x01 -- cgit v1.1