diff options
author | Scott Wood <oss@buserror.net> | 2016-05-30 13:57:54 -0500 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-06-03 20:27:48 -0500 |
commit | 151c06ec61d74b77cf27d6d622bab6370c949c66 (patch) | |
tree | fc50effb6cd876bf28ba3e6f3f143f0f51fd6db1 /cmd/jffs2.c | |
parent | ea7d1eec66898b233ac49f8a60391b96afa25477 (diff) | |
download | u-boot-151c06ec61d74b77cf27d6d622bab6370c949c66.tar.gz |
mtd: nand: Remove nand_info_t typedef
This typedef serves no purpose other than causing confusion with
struct nand_chip.
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'cmd/jffs2.c')
-rw-r--r-- | cmd/jffs2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/jffs2.c b/cmd/jffs2.c index 0b2eefa195..e4eaa48c1f 100644 --- a/cmd/jffs2.c +++ b/cmd/jffs2.c @@ -242,11 +242,11 @@ static int mtd_id_parse(const char *id, const char **ret_id, u8 *dev_type, u8 *d static inline u32 get_part_sector_size_nand(struct mtdids *id) { #if defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND) - nand_info_t *nand; + struct mtd_info *mtd; - nand = &nand_info[id->num]; + mtd = &nand_info[id->num]; - return nand->erasesize; + return mtd->erasesize; #else BUG(); return 0; |