提交 fda07a6c 编写于 作者: J Jeremy Kerr 提交者: Greg Kroah-Hartman

drivers/fsi: Add device & driver definitions

Add structs for fsi devices & drivers, and struct device conversion
functions.
Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
Signed-off-by: NChris Bostic <cbostic@us.ibm.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0508ad1f
......@@ -17,6 +17,17 @@
#include <linux/device.h>
struct fsi_device {
struct device dev;
};
struct fsi_driver {
struct device_driver drv;
};
#define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev)
#define to_fsi_drv(drvp) container_of(drvp, struct fsi_driver, drv)
extern struct bus_type fsi_bus_type;
#endif /* LINUX_FSI_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册