mtd: spi-nor: spansion: switch s25hx_t to use vreg_offset for quad_enable()
authorTudor Ambarus <tudor.ambarus@linaro.org>
Wed, 26 Jul 2023 07:52:56 +0000 (10:52 +0300)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Wed, 26 Jul 2023 09:39:11 +0000 (12:39 +0300)
commitfb63bfad1e8f9f893c2bd5fa3eecb92aa632a3e8
tree4597f8179eb7e37b656afd624e222ca67ee22cb3
parent39133e5f559e748904aeb6b74063882242076a61
mtd: spi-nor: spansion: switch s25hx_t to use vreg_offset for quad_enable()

All s25hx_t flashes have single or multi chip flavors and already use
n_dice and vreg_offset in cypress_nor_sr_ready_and_clear. Switch s25hx_t
to always use vreg_offset for the quad_enable() method, so that we use
the same code base for both single and multi chip package flashes.

Tested-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Link: https://lore.kernel.org/r/20230726075257.12985-11-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/spansion.c