mtd: spinand: Make use of spinand_to_[mtd/nand]() helpers
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Tue, 30 Sep 2025 00:20:51 +0000 (03:20 +0300)
committerMichael Trimarchi <michael@amarulasolutions.com>
Sun, 5 Oct 2025 18:25:54 +0000 (20:25 +0200)
commit5faba88f982fc933fecb975fc44fdacfafafbb40
tree324906ce4dcbbfef62c6db15f03f3831e2d85e24
parent64b7865c72b8b3bc3c08e095888d6c7dce7c7c27
mtd: spinand: Make use of spinand_to_[mtd/nand]() helpers

Use spinand_to_nand() and spinand_to_mtd() helpers instead of
nanddev_to_mtd() and direct access to spinand structure fields.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/spi/core.c