mtd: nand: Fix retrieving nand_chip from mtd_info
With 76b6f74c53 we begin embedding a struct mtd_info into struct
nand_chip. With this mtd_to_nand() must be changed accordingly.

Fixes: 76b6f74c53 ("mtd: nand: Embed struct mtd_info into struct nand_chip")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4733896 commit fd72834fa74b604efc7b2af5f40ccab5796b79e7
@Sascha Hauer Sascha Hauer authored on 12 Sep 2019
Showing 1 changed file
View
include/linux/mtd/nand.h