[PATCH 08/26] spi: Tidy up get/set of device node

Simon Glass
2020-12-28T16:26:36Z

This code is a bit odd in that it only reads and updates the livetree
version of the device ofnode. This means it won't work with flattree.
Update the code to work as it was presumably intended.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

drivers/mtd/nand/spi/core.c | 2 +-
include/linux/mtd/mtd.h | 9 ++++-----
include/linux/mtd/nand.h | 14 ++++++++++++++
include/linux/mtd/spi-nor.h | 2 ++
include/linux/mtd/spinand.h | 15 +++++++++++++++
5 files changed, 36 insertions(+), 6 deletions(-)

Applied to u-boot-dm/next, thanks!