mtd: spi-nor: move all spansion specifics into spansion.c
authorMichael Walle <michael@walle.cc>
Wed, 23 Feb 2022 13:43:54 +0000 (14:43 +0100)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 25 Feb 2022 16:12:49 +0000 (18:12 +0200)
commit837d5181beef068c16bb8424c2c1571a7d5d7966
treed7d549ee8e7b21f3632fdceba89bbec1c3eeba21
parent6235ff040c1372acab928c308f43908840e991d3
mtd: spi-nor: move all spansion specifics into spansion.c

The clear status register flags is only available on spansion flashes.
Move all the functions around that into the spanion module.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: Pratyush Yadav <p.yadav@ti.com> # on mt35xu512aba, s28hs512t
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220223134358.1914798-29-michael@walle.cc
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/spansion.c
include/linux/mtd/spi-nor.h