mtd: spi-nor: Add a default_init() fixup hook for gd25q256
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sat, 24 Aug 2019 12:00:39 +0000 (12:00 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 28 Aug 2019 09:40:27 +0000 (12:40 +0300)
commit48e4d973aefeea6080e6f6dc69326a66004c7923
tree75cc7e04e2d449f6758dd32fdf2ed7a731a10d47
parentce0b6f3f3c43271f4486c7255656277cc5996f6e
mtd: spi-nor: Add a default_init() fixup hook for gd25q256

gd25q256 needs to tweak the ->quad_enable() implementation and the
->default_init() fixup hook is the perfect place to do that. This way,
if we ever need to tweak more things for this flash, we won't have to
add new fields in flash_info.

We can get rid of the flash_info->quad_enable field as gd25q256 was
the only user.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
[tudor.ambarus@microchip.com: use ->default_init() hook instead of
->post_sfdp()]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/spi-nor.c