mtd: spi-nor: spansion: Add local function to discover page size
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Mon, 25 Jul 2022 09:25:04 +0000 (12:25 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 28 Jul 2022 02:18:28 +0000 (05:18 +0300)
commita6b50aa1279614df7033f8b57d6854fce0334e27
tree4de3f0dd5403a4418b0a9228bc507f22d5a9e371
parentd7931a21506321327351f68fdebf74a56a58e675
mtd: spi-nor: spansion: Add local function to discover page size

The page size check in s28hs512t fixup can be used for s25hs/hl-t as well.
Move that to a newly created local function.

Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220725092505.446315-7-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/spansion.c