diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-11-19 22:10:41 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-19 22:12:28 +0300 |
commit | c291b3c3527fa962f53862426e0e4258d7bd8269 (patch) | |
tree | d8e9ca73a735f18d2365e25b02956d37c19a845f /include/linux/mtd/nand.h | |
parent | 1d8d8b5c852b6c7ae860ddc647ebb3ed3493c9a8 (diff) | |
parent | 9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff) | |
download | linux-c291b3c3527fa962f53862426e0e4258d7bd8269.tar.xz |
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.h | 5 |
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 */ |