mtd: spi-nor: Get rid of nor->page_size
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 29 Oct 2021 17:26:12 +0000 (20:26 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 17 Nov 2021 12:41:26 +0000 (14:41 +0200)
commit5854d4a6cc356ba3e16d8593ac1c089a32d1759c
treef5e05bca90d59fe286c68c8b33920f8df4ffc390
parent7158c86e560789a4a07fe161cc284f8058d52ccc
mtd: spi-nor: Get rid of nor->page_size

nor->page_size duplicated what nor->params->page_size indicates
for no good reason. page_size is a flash parameter of fixed value
and it is better suited to be found in nor->params->page_size.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20211029172633.886453-5-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/xilinx.c
include/linux/mtd/spi-nor.h