mtd: spi-nor: Introduce spi_nor_set_addr_width()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Sat, 24 Aug 2019 12:19:22 +0000 (12:19 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 28 Aug 2019 09:40:30 +0000 (12:40 +0300)
commit696ce50f4e9377d68740ed46c0547be0e7f9d3f7
treebd4342c3d495a4830e403f2659857841e550a0e4
parent07920dfcf0039695e0202c35b458e0ffce4de385
mtd: spi-nor: Introduce spi_nor_set_addr_width()

Parsing of flash parameters were interleaved with setting of the
nor addr width. Dedicate a function for setting nor addr width.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/spi-nor.c