X1000: drv_sfc_gd25qxx_mtd.c: 修复编译过程中的警告/Fix compile-time warnings
在第36行中,“rt_size_t size”应改为“rt_uint32_t size”。 在第43行中,“rt_size_t size”应改为“rt_uint32_t size”。 In line 36, "rt_size_t size" should be changed to "rt_uint32_t size". In line 43, "rt_size_t size" should be changed to "rt_uint32_t size". Signed-off-by: Zhou Yanjie <zhou_yan_jie@163.com>
This commit is contained in:
parent
c4bdf80cfa
commit
d3f47a6574
|
@ -33,14 +33,14 @@ static rt_base_t mtd_gd25_read_id(struct rt_mtd_nor_device *device)
|
|||
return (rt_uint32_t)flash->id;
|
||||
}
|
||||
|
||||
static rt_size_t mtd_gd25_read(struct rt_mtd_nor_device *device, rt_off_t position, rt_uint8_t *data, rt_size_t size)
|
||||
static rt_size_t mtd_gd25_read(struct rt_mtd_nor_device *device, rt_off_t position, rt_uint8_t *data, rt_uint32_t size)
|
||||
{
|
||||
struct sfc_flash *flash = (struct sfc_flash *)device;
|
||||
|
||||
return sfc_norflash_read(flash,position,data,size);
|
||||
}
|
||||
|
||||
static rt_size_t mtd_gd25_write(struct rt_mtd_nor_device *device, rt_off_t position, const rt_uint8_t *data, rt_size_t size)
|
||||
static rt_size_t mtd_gd25_write(struct rt_mtd_nor_device *device, rt_off_t position, const rt_uint8_t *data, rt_uint32_t size)
|
||||
{
|
||||
struct sfc_flash *flash = (struct sfc_flash *)device;
|
||||
|
||||
|
|
Loading…
Reference in New Issue