]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spinand: winbond: Convert W25N specific operation to SPINAND_OP()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:10 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:41 +0000 (20:21 +0100)
commit44c9c1b45d50dcbce17c18adb4e79f394f127d57
treede166fd25d1875a9e08f4e6b203ad9af63c57c3e
parentb347cdc89beb12e531ebbfda77c37c6446285a40
mtd: spinand: winbond: Convert W25N specific operation to SPINAND_OP()

Winbond W25N* chips require a vendor specific operation to select the
target. Instead of defining this op only in the function that
needs it, hiding it from the core, make it a proper define like all
other spi-mem operations, and implement the necessary
spinand_fill_*_op() helper to make the SPINAND_OP() macro work. This way
we can use it from any function without any extra handling outside of
this helper when we will convert the core to support octal DDR busses.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/winbond.c