mtd: add get/set of_node/flash_node helpers
authorBrian Norris <computersforpeace@gmail.com>
Thu, 16 Aug 2018 15:30:03 +0000 (17:30 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 20 Sep 2018 14:40:49 +0000 (20:10 +0530)
commit9bfc3fde9c64320f7165560a64888fad09bc0fee
treea107e8deb7476e63f57d2af570f3b844991b6b50
parentca040d8512f4d93a7eb83f7b8fec8f4b8b1d3192
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 <computersforpeace@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
include/linux/mtd/mtd.h