mtd: add get/set of_node/flash_node helpers
authorBrian Norris <[email protected]>
Fri, 15 Mar 2019 14:14:30 +0000 (15:14 +0100)
committerTom Rini <[email protected]>
Mon, 22 Apr 2019 15:55:58 +0000 (11:55 -0400)
commit892a8682f71910aa12647c5636ec5304225c9e0f
treeae52278b7e30daef14f7aa92657eeb9a19145b57
parent8a94262435ca559a5e2dad79f2dc3c130e9047a8
mtd: add get/set of_node/flash_node helpers

Linux commit 28b8b26b308 ("mtd: add get/set of_node/flash_node helpers")

We are going to begin using the mtd->dev.of_node field for MTD device
nodes, so let's add helpers for it. Also, we'll be making some
conversions on spi_nor (and nand_chip eventually) too, so get that ready
with their own helpers.

Signed-off-by: Brian Norris <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
[Philippe Reynes: only add function nand_set_flash_node and
nand_get_flash_node because others were already backported]

Signed-off-by: Philippe Reynes <[email protected]>
include/linux/mtd/rawnand.h