summaryrefslogtreecommitdiff
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-11-19 11:10:41 -0800
committerBrian Norris <computersforpeace@gmail.com>2015-11-19 11:12:28 -0800
commitc291b3c3527fa962f53862426e0e4258d7bd8269 (patch)
treed8e9ca73a735f18d2365e25b02956d37c19a845f /include/linux/mtd/nand.h
parent1d8d8b5c852b6c7ae860ddc647ebb3ed3493c9a8 (diff)
parent9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff)
mtd: merge in mtd_to_nand() branch
In case other subsystems want to merge in this helper for use in their drivers, let's bring in that development separately from the rest of MTD -next development. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 4f7c9b97982f..056d1650eb89 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
*/