]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - include/mtd.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
9 #include <linux/mtd/mtd.h>
12 * Get mtd_info structure of the dev, which is stored as uclass private.
14 * @dev: The MTD device
15 * @return: pointer to mtd_info, NULL on error
17 static inline struct mtd_info
*mtd_get_info(struct udevice
*dev
)
19 return dev_get_uclass_priv(dev
);