diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 4f7c9b97982f649a07765532ac18b60762e194b6..056d1650eb89f2e84751c5a3631e55876fabd53c 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -730,6 +730,11 @@ static inline struct device_node *nand_get_flash_node(struct nand_chip *chip) return chip->flash_node; } +static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) +{ + return mtd->priv; +} + /* * NAND Flash Manufacturer ID Codes */