]> Git Repo - u-boot.git/blob - include/mtd.h
Merge branch 'master' of git://git.denx.de/u-boot-socfpga
[u-boot.git] / include / mtd.h
1 /*
2  * Copyright (C) 2015 Thomas Chou <[email protected]>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef _MTD_H_
8 #define _MTD_H_
9
10 #include <linux/mtd/mtd.h>
11
12 /*
13  * Get mtd_info structure of the dev, which is stored as uclass private.
14  *
15  * @dev: The MTD device
16  * @return: pointer to mtd_info, NULL on error
17  */
18 static inline struct mtd_info *mtd_get_info(struct udevice *dev)
19 {
20         return dev_get_uclass_priv(dev);
21 }
22
23 #endif  /* _MTD_H_ */
This page took 0.027607 seconds and 4 git commands to generate.