diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2015-12-15 19:39:53 +0300 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-15 19:39:53 +0300 |
| commit | d7e4859100e351a31aec13490d5f1d77aa8ca92e (patch) | |
| tree | 32f6471a31dd7007d2ba6a5e47a853a17692a378 /include | |
| parent | 4ce5219554bd84bc1b39ffeff76713946a0258ba (diff) | |
| parent | c993e09504fca192bac4ac3f5a3411ac68cba2e6 (diff) | |
| download | linux-d7e4859100e351a31aec13490d5f1d77aa8ca92e.tar.xz | |
Merge tag 'arm-soc/for-4.5/cleanup' of git://git.infradead.org/linux-mtd into next/cleanup
Merge "MTD/NAND cleanups for v4.5" from Brian Norris:
Two changes for NAND/MTD refactoring. The mtd_to_nand() helper will allow us to
stop using mtd->priv for NAND drivers.
* tag 'arm-soc/for-4.5/cleanup' of git://git.infradead.org/linux-mtd:
ARM: nand: make use of mtd_to_nand() where appropriate
mtd: nand: add an mtd_to_nand() helper
Diffstat (limited to 'include')
| -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 5a9d1d4c2487..a4839b3f27da 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -719,6 +719,11 @@ struct nand_chip { void *priv; }; +static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) +{ + return mtd->priv; +} + /* * NAND Flash Manufacturer ID Codes */ |
