diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-12 07:53:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-12 07:53:06 +0200 |
commit | a984683e2a562c6020af0e4b3cc791cf0b44601d (patch) | |
tree | 87458a16b2bab32b0a2211757c305aa3b195920a /include/linux | |
parent | 9b1102c02bfd39352e0d2995c733edb7be3b0601 (diff) | |
parent | 3ce1121ea5864933165edaa5ae41cd1c366ecba8 (diff) | |
download | barebox-a984683e2a562c6020af0e4b3cc791cf0b44601d.tar.gz barebox-a984683e2a562c6020af0e4b3cc791cf0b44601d.tar.xz |
Merge branch 'for-next/mtd'
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/nand.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 7f17767c69..762f9c4f2a 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -543,6 +543,8 @@ struct nand_chip { void *priv; unsigned int bbt_type; + + struct mtd_info mtd; }; /* @@ -799,4 +801,9 @@ struct nand_sdr_timings { /* get timing characteristics from ONFI timing mode. */ const struct nand_sdr_timings *onfi_async_timing_mode_to_sdr_timings(int mode); +static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) +{ + return mtd->priv; +} + #endif /* __LINUX_MTD_NAND_H */ |