Re: [U-Boot] [PATCH] nand_init: use loff_t for offset

2009-06-22 Thread Scott Wood
On Sat, May 16, 2009 at 02:27:40PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > nand_init currently use size_t which is arch dependent and not always a > unsigned long. Now use loff_t as the linux mtd layer > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > Cc: Scott Wood Applied to u-b

Re: [U-Boot] [PATCH] nand_init: use loff_t for offset

2009-05-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:31 Tue 19 May , Scott Wood wrote: > On Sat, May 16, 2009 at 02:27:40PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > -static inline int nand_erase(nand_info_t *info, off_t off, size_t size) > > +static inline int nand_erase(nand_info_t *info, loff_t off, size_t size) > > "size" s

Re: [U-Boot] [PATCH] nand_init: use loff_t for offset

2009-05-19 Thread Scott Wood
On Sat, May 16, 2009 at 02:27:40PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > -static inline int nand_erase(nand_info_t *info, off_t off, size_t size) > +static inline int nand_erase(nand_info_t *info, loff_t off, size_t size) "size" should probably be loff_t (or something similarly sized)

[U-Boot] [PATCH] nand_init: use loff_t for offset

2009-05-16 Thread Jean-Christophe PLAGNIOL-VILLARD
nand_init currently use size_t which is arch dependent and not always a unsigned long. Now use loff_t as the linux mtd layer Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Scott Wood --- drivers/mtd/nand/nand_util.c | 20 ++-- include/nand.h | 14 +++--