]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: Tidy up get/set of device node
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:40:00 +0000 (10:40 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
commite2a7cfe9d5fce65789972a31ff50fb1d8d509848
tree085b2ec36757a215d7f9ed647af5a5c6aa09f149
parenta53f6fad7ea20f6ccde21f68e3b44ab7fe8bf6cd
spi: Tidy up get/set of device node

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
include/linux/mtd/mtd.h
include/linux/mtd/nand.h
include/linux/mtd/spi-nor.h
include/linux/mtd/spinand.h