drivers/fsi: Add device & driver definitions
Add structs for fsi devices & drivers, and struct device conversion functions. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Chris Bostic <cbostic@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0508ad1fff
commit
fda07a6c94
1 changed files with 11 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue