Commit b46daf7e authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David Woodhouse

mtd: remove junk tabs in nand.h

Remove tabs between type and name.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent a0491fc4
...@@ -253,7 +253,8 @@ struct nand_chip; ...@@ -253,7 +253,8 @@ struct nand_chip;
struct nand_onfi_params { struct nand_onfi_params {
/* rev info and features block */ /* rev info and features block */
u8 sig[4]; /* 'O' 'N' 'F' 'I' */ /* 'O' 'N' 'F' 'I' */
u8 sig[4];
__le16 revision; __le16 revision;
__le16 features; __le16 features;
__le16 opt_cmd; __le16 opt_cmd;
...@@ -362,34 +363,23 @@ struct nand_ecc_ctrl { ...@@ -362,34 +363,23 @@ struct nand_ecc_ctrl {
int postpad; int postpad;
struct nand_ecclayout *layout; struct nand_ecclayout *layout;
void (*hwctl)(struct mtd_info *mtd, int mode); void (*hwctl)(struct mtd_info *mtd, int mode);
int (*calculate)(struct mtd_info *mtd, int (*calculate)(struct mtd_info *mtd, const uint8_t *dat,
const uint8_t *dat,
uint8_t *ecc_code); uint8_t *ecc_code);
int (*correct)(struct mtd_info *mtd, uint8_t *dat, int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc,
uint8_t *read_ecc,
uint8_t *calc_ecc); uint8_t *calc_ecc);
int (*read_page_raw)(struct mtd_info *mtd, int (*read_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
struct nand_chip *chip,
uint8_t *buf, int page); uint8_t *buf, int page);
void (*write_page_raw)(struct mtd_info *mtd, void (*write_page_raw)(struct mtd_info *mtd, struct nand_chip *chip,
struct nand_chip *chip,
const uint8_t *buf); const uint8_t *buf);
int (*read_page)(struct mtd_info *mtd, int (*read_page)(struct mtd_info *mtd, struct nand_chip *chip,
struct nand_chip *chip,
uint8_t *buf, int page); uint8_t *buf, int page);
int (*read_subpage)(struct mtd_info *mtd, int (*read_subpage)(struct mtd_info *mtd, struct nand_chip *chip,
struct nand_chip *chip, uint32_t offs, uint32_t len, uint8_t *buf);
uint32_t offs, uint32_t len, void (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
uint8_t *buf);
void (*write_page)(struct mtd_info *mtd,
struct nand_chip *chip,
const uint8_t *buf); const uint8_t *buf);
int (*read_oob)(struct mtd_info *mtd, int (*read_oob)(struct mtd_info *mtd, struct nand_chip *chip, int page,
struct nand_chip *chip,
int page,
int sndcmd); int sndcmd);
int (*write_oob)(struct mtd_info *mtd, int (*write_oob)(struct mtd_info *mtd, struct nand_chip *chip,
struct nand_chip *chip,
int page); int page);
}; };
...@@ -492,32 +482,25 @@ struct nand_chip { ...@@ -492,32 +482,25 @@ struct nand_chip {
uint8_t (*read_byte)(struct mtd_info *mtd); uint8_t (*read_byte)(struct mtd_info *mtd);
u16 (*read_word)(struct mtd_info *mtd); u16 (*read_word)(struct mtd_info *mtd);
void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
int len); void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
int len);
int (*verify_buf)(struct mtd_info *mtd, const uint8_t *buf,
int len);
void (*select_chip)(struct mtd_info *mtd, int chip); void (*select_chip)(struct mtd_info *mtd, int chip);
int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int (*block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip);
int getchip);
int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
void (*cmd_ctrl)(struct mtd_info *mtd, int dat, void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
unsigned int ctrl); int (*init_size)(struct mtd_info *mtd, struct nand_chip *this,
int (*init_size)(struct mtd_info *mtd, u8 *id_data);
struct nand_chip *this, u8 *id_data);
int (*dev_ready)(struct mtd_info *mtd); int (*dev_ready)(struct mtd_info *mtd);
void (*cmdfunc)(struct mtd_info *mtd, unsigned command, void (*cmdfunc)(struct mtd_info *mtd, unsigned command, int column,
int column, int page_addr); int page_addr);
int (*waitfunc)(struct mtd_info *mtd, int(*waitfunc)(struct mtd_info *mtd, struct nand_chip *this);
struct nand_chip *this);
void (*erase_cmd)(struct mtd_info *mtd, int page); void (*erase_cmd)(struct mtd_info *mtd, int page);
int (*scan_bbt)(struct mtd_info *mtd); int (*scan_bbt)(struct mtd_info *mtd);
int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int (*errstat)(struct mtd_info *mtd, struct nand_chip *this, int state,
int state, int status, int page); int status, int page);
int (*write_page)(struct mtd_info *mtd, int (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
struct nand_chip *chip, const uint8_t *buf, int page, const uint8_t *buf, int page, int cached, int raw);
int cached, int raw);
int chip_delay; int chip_delay;
unsigned int options; unsigned int options;
...@@ -637,8 +620,7 @@ struct platform_nand_chip { ...@@ -637,8 +620,7 @@ struct platform_nand_chip {
int chip_delay; int chip_delay;
unsigned int options; unsigned int options;
const char **part_probe_types; const char **part_probe_types;
void (*set_parts)(uint64_t size, void (*set_parts)(uint64_t size, struct platform_nand_chip *chip);
struct platform_nand_chip *chip);
void *priv; void *priv;
}; };
...@@ -666,12 +648,9 @@ struct platform_nand_ctrl { ...@@ -666,12 +648,9 @@ struct platform_nand_ctrl {
void (*hwcontrol)(struct mtd_info *mtd, int cmd); void (*hwcontrol)(struct mtd_info *mtd, int cmd);
int (*dev_ready)(struct mtd_info *mtd); int (*dev_ready)(struct mtd_info *mtd);
void (*select_chip)(struct mtd_info *mtd, int chip); void (*select_chip)(struct mtd_info *mtd, int chip);
void (*cmd_ctrl)(struct mtd_info *mtd, int dat, void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
unsigned int ctrl); void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
void (*write_buf)(struct mtd_info *mtd, void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
const uint8_t *buf, int len);
void (*read_buf)(struct mtd_info *mtd,
uint8_t *buf, int len);
void *priv; void *priv;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment