summaryrefslogtreecommitdiffstats
path: root/include/nand.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-28 12:08:18 +0200
committerWolfgang Denk <wd@denx.de>2008-04-28 12:08:18 +0200
commit4ca79f477ebd25a6872e6196d80e2f5eff441376 (patch)
treefa08b5ac950b83248d49e681f66a5ed530eb71dc /include/nand.h
parentff8a7aa24a22fe332a57627a23c14bfd7e51599b (diff)
downloadbootable_bootloader_goldelico_gta04-4ca79f477ebd25a6872e6196d80e2f5eff441376.zip
bootable_bootloader_goldelico_gta04-4ca79f477ebd25a6872e6196d80e2f5eff441376.tar.gz
bootable_bootloader_goldelico_gta04-4ca79f477ebd25a6872e6196d80e2f5eff441376.tar.bz2
NAND: fix some strict-aliasing compiler warnings
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/nand.h b/include/nand.h
index 3c0752e..247d346 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -34,22 +34,22 @@ extern int nand_curr_device;
extern nand_info_t nand_info[];
extern void nand_init(void);
-static inline int nand_read(nand_info_t *info, ulong ofs, ulong *len, u_char *buf)
+static inline int nand_read(nand_info_t *info, off_t ofs, size_t *len, u_char *buf)
{
return info->read(info, ofs, *len, (size_t *)len, buf);
}
-static inline int nand_write(nand_info_t *info, ulong ofs, ulong *len, u_char *buf)
+static inline int nand_write(nand_info_t *info, off_t ofs, size_t *len, u_char *buf)
{
return info->write(info, ofs, *len, (size_t *)len, buf);
}
-static inline int nand_block_isbad(nand_info_t *info, ulong ofs)
+static inline int nand_block_isbad(nand_info_t *info, off_t ofs)
{
return info->block_isbad(info, ofs);
}
-static inline int nand_erase(nand_info_t *info, ulong off, ulong size)
+static inline int nand_erase(nand_info_t *info, off_t off, size_t size)
{
struct erase_info instr;