mtd: rawnand: Use nand_to_mtd() in nand_{set,get}_flash_node()
authorBoris Brezillon <bbrezillon@kernel.org>
Thu, 25 Oct 2018 13:05:39 +0000 (15:05 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:11 +0000 (10:21 +0200)
commit080d66e94d69a5b1d197ac411db6c27700868af8
tree54942dd0cab6a26b6d7e0ceda4829469e7b8b9cb
parent509198485bf2600f4104fdf391b8632cf69f2dd8
mtd: rawnand: Use nand_to_mtd() in nand_{set,get}_flash_node()

Use the nand_to_mtd() helper to access chip->mtd as done everywhere
else.

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
include/linux/mtd/rawnand.h