mtd: add get/set of_node/flash_node helpers
authorBrian Norris <computersforpeace@gmail.com>
Sat, 31 Oct 2015 03:33:20 +0000 (20:33 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 21:45:05 +0000 (13:45 -0800)
commit28b8b26b308e656edfa9467867d5f79212da2ec3
treefb42583235108b33d05676b674afd33e74e2a568
parentbf9c37cb627a3f690e246d9326a4a94913771bbf
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>
include/linux/mtd/mtd.h
include/linux/mtd/nand.h
include/linux/mtd/spi-nor.h