mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
NAND: fix some strict-aliasing compiler warnings
Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
ff8a7aa24a
commit
4ca79f477e
3 changed files with 15 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue