diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2022-07-25 12:24:59 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2022-07-28 05:11:56 +0300 |
commit | c452d49849d48bd37ae97fc2bc92c6435707c35f (patch) | |
tree | 32d61a8ddbe889e394efb969afa0ec6e6286a1fa /drivers/mtd/spi-nor/controllers/hisi-sfc.c | |
parent | 41e4f15f02af67fbcd6fec243ef52627f51760b4 (diff) | |
download | linux-c452d49849d48bd37ae97fc2bc92c6435707c35f.tar.xz |
mtd: spi-nor: s/addr_width/addr_nbytes
Address width was an unfortunate name, as it means the number of IO lines
used for the address, whereas in the code it is used as the number of
address bytes. s/addr_width/addr_nbytes throughout the entire SPI NOR
framework.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Acked-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220725092505.446315-2-tudor.ambarus@microchip.com
Diffstat (limited to 'drivers/mtd/spi-nor/controllers/hisi-sfc.c')
-rw-r--r-- | drivers/mtd/spi-nor/controllers/hisi-sfc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/controllers/hisi-sfc.c b/drivers/mtd/spi-nor/controllers/hisi-sfc.c index 94a969185ceb..5070d72835ec 100644 --- a/drivers/mtd/spi-nor/controllers/hisi-sfc.c +++ b/drivers/mtd/spi-nor/controllers/hisi-sfc.c @@ -237,7 +237,7 @@ static int hisi_spi_nor_dma_transfer(struct spi_nor *nor, loff_t start_off, reg = readl(host->regbase + FMC_CFG); reg &= ~(FMC_CFG_OP_MODE_MASK | SPI_NOR_ADDR_MODE_MASK); reg |= FMC_CFG_OP_MODE_NORMAL; - reg |= (nor->addr_width == 4) ? SPI_NOR_ADDR_MODE_4BYTES + reg |= (nor->addr_nbytes == 4) ? SPI_NOR_ADDR_MODE_4BYTES : SPI_NOR_ADDR_MODE_3BYTES; writel(reg, host->regbase + FMC_CFG); |