[U-Boot] [PATCH v7 82/87] mtd: spi-nor: offset with addr
Jagan Teki
jteki at openedev.com
Tue Mar 22 08:38:34 CET 2016
For more readability use addr instead of offset.
Cc: Simon Glass <sjg at chromium.org>
Cc: Bin Meng <bmeng.cn at gmail.com>
Cc: Mugunthan V N <mugunthanvnm at ti.com>
Cc: Michal Simek <michal.simek at xilinx.com>
Cc: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
Signed-off-by: Jagan Teki <jteki at openedev.com>
---
drivers/mtd/spi-nor/spi-nor.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 36dfe77..6166b62 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -642,8 +642,8 @@ static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len,
}
#ifdef CONFIG_SPI_NOR_SST
-static int sst_byte_write(struct spi_nor *nor, u32 offset,
- const void *buf, size_t *retlen)
+static int sst_byte_write(struct spi_nor *nor, u32 addr, const void *buf,
+ size_t *retlen)
{
int ret;
@@ -653,7 +653,7 @@ static int sst_byte_write(struct spi_nor *nor, u32 offset,
nor->program_opcode = SNOR_OP_BP;
- ret = nor->write(nor, offset, 1, buf);
+ ret = nor->write(nor, addr, 1, buf);
if (ret)
return ret;
--
1.9.1
More information about the U-Boot
mailing list