Commit fda07a6c authored by Jeremy Kerr's avatar Jeremy Kerr Committed by Greg Kroah-Hartman

drivers/fsi: Add device & driver definitions

Add structs for fsi devices & drivers, and struct device conversion
functions.
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarChris Bostic <cbostic@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment