diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-11-19 14:10:41 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-19 14:12:28 -0500 |
commit | c291b3c3527fa962f53862426e0e4258d7bd8269 (patch) | |
tree | d8e9ca73a735f18d2365e25b02956d37c19a845f | |
parent | 1d8d8b5c852b6c7ae860ddc647ebb3ed3493c9a8 (diff) | |
parent | 9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (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>
-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) | |||
730 | return chip->flash_node; | 730 | return chip->flash_node; |
731 | } | 731 | } |
732 | 732 | ||
733 | static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) | ||
734 | { | ||
735 | return mtd->priv; | ||
736 | } | ||
737 | |||
733 | /* | 738 | /* |
734 | * NAND Flash Manufacturer ID Codes | 739 | * NAND Flash Manufacturer ID Codes |
735 | */ | 740 | */ |