drivers/fsi: Add device & driver definitions
PATCH v3 2/18 drivers/fsi: Add device & driver definitions
From: Jeremy Kerr <[email protected]>
Add structs for fsi devices & drivers, and struct device conversion functions.
Signed-off-by Jeremy Kerr <[email protected]>
Signed-off-by Chris Bostic <[email protected]>
--- include/linux/fsi.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
include/linux/fsi.h +11 -0
@@ -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 */
Signature · 1 line
1.8.2.2