]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: Decouple write enable and write disable operations
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:06 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:40 +0000 (20:21 +0100)
commitc0ba929cf7a960c796cc9946b3f79d8405e9b805
tree2007462714fb5b4a159bb7725af9b8ea0acd106c
parent7a5cd7610a4b4e9a2b660fad1e81bb9a79ae99b0
mtd: spinand: Decouple write enable and write disable operations

In order to introduce templates for all operations and not only for page
helpers (in order to introduce octal DDR support), decouple the WR_EN
and WR_DIS operations into two separate macros.

Adapt the callers accordingly.

There is no functional change.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/core.c
drivers/mtd/nand/spi/esmt.c
drivers/mtd/nand/spi/micron.c
include/linux/mtd/spinand.h