mtd: spi-nor: get rid of non-power-of-2 page size handling
authorMichael Walle <mwalle@kernel.org>
Fri, 19 Apr 2024 14:12:45 +0000 (16:12 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Mon, 27 May 2024 14:58:45 +0000 (16:58 +0200)
commit9539d12d9f5242133ed614d72c82041ab71842a9
tree9c6710c54a36a83e11fbb90b68333b5e9ed1f23a
parentbe1d1a76570c6e82fb51e77e7d0ad2d6e8157fea
mtd: spi-nor: get rid of non-power-of-2 page size handling

The Xilinx flashes were the only users of page sizes that were not power
of 2. Support for them has been dropped, thus we can also get rid of the
special page size handling for it.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Acked-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
[pratyush@kernel.org: fixup minor typos and grammar in commit message]
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20240419141249.609534-3-mwalle@kernel.org
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h