Merge pull request #2311 from Ingenic-community/master

X1000: mtd_nor_partition.c: 修复编译过程中的警告/Fix compile-time warnings
This commit is contained in:
Bernard Xiong 2019-02-05 15:59:58 +08:00 committed by GitHub
commit 959d71d145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
bsp/x1000/drivers/sfc/mtd_nor_partition.c Normal file → Executable file
View File

@ -163,7 +163,7 @@ static rt_base_t mtd_part_mtd_read_id(struct rt_mtd_nor_device *dev)
return rt_mtd_nor_read_id(mtd_nor);
}
static rt_size_t mtd_part_mtd_read(struct rt_mtd_nor_device *dev, rt_off_t offset, rt_uint8_t *buffer, rt_size_t length)
static rt_size_t mtd_part_mtd_read(struct rt_mtd_nor_device *dev, rt_off_t offset, rt_uint8_t *buffer, rt_uint32_t length)
{
struct rt_mtd_nor_partition *mtd_part;
struct rt_mtd_nor_device *mtd_nor;
@ -197,7 +197,7 @@ static rt_size_t mtd_part_mtd_read(struct rt_mtd_nor_device *dev, rt_off_t offse
return 0;
}
static rt_size_t mtd_part_mtd_write(struct rt_mtd_nor_device *dev, rt_off_t offset, const rt_uint8_t *buffer, rt_size_t length)
static rt_size_t mtd_part_mtd_write(struct rt_mtd_nor_device *dev, rt_off_t offset, const rt_uint8_t *buffer, rt_uint32_t length)
{
struct rt_mtd_nor_partition *mtd_part;
struct rt_mtd_nor_device *mtd_nor;