2 * Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <linux/mtd/mtd.h>
13 * Get mtd_info structure of the dev, which is stored as uclass private.
15 * @dev: The MTD device
16 * @return: pointer to mtd_info, NULL on error
18 static inline struct mtd_info *mtd_get_info(struct udevice *dev)
20 return dev_get_uclass_priv(dev);