]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2615e0cb92aa9a2ea8ec13cd15dc4988079c4305
treeeae6e43705d4cd33b6dbd2433bcdcb96417fbb00
parent8ebbd4b5cc438dd0290ac286381ec229d00b82bd
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]