mtd: spi-nor: Move Software Write Protection logic out of the core
authorTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 22 Mar 2021 07:51:30 +0000 (09:51 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 31 Mar 2021 19:41:34 +0000 (22:41 +0300)
commitc4c795105f2924c80752c30ffd3c7029a8e0ef28
treeeae6e43705d4cd33b6dbd2433bcdcb96417fbb00
parent79321e752aff36569fb2b5b121f6e1dca9fc5f74
mtd: spi-nor: Move Software Write Protection logic out of the core

It makes the core file a bit smaller and provides better separation
between the Software Write Protection features and the core logic.
All the next generic software write protection features (e.g. Individual
Block Protection) will reside in swp.c.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Acked-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20210322075131.45093-2-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/Makefile
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/swp.c [new file with mode: 0644]