diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2017-02-01 10:53:42 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-10 15:19:48 +0100 |
commit | fda07a6c94ac5c9bd73d7b0134c6cc6861375341 (patch) | |
tree | 268cd476b132098b774031a8f8f6d2ef2986fbde /include/linux/fsi.h | |
parent | 0508ad1fff11a8b0acdf0333b5fe108d7bd5fce4 (diff) | |
download | linux-fda07a6c94ac5c9bd73d7b0134c6cc6861375341.tar.gz linux-fda07a6c94ac5c9bd73d7b0134c6cc6861375341.tar.bz2 linux-fda07a6c94ac5c9bd73d7b0134c6cc6861375341.zip |
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>
Diffstat (limited to 'include/linux/fsi.h')
-rw-r--r-- | include/linux/fsi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/fsi.h b/include/linux/fsi.h index 47aa181b6404..f73886a5af01 100644 --- a/include/linux/fsi.h +++ b/include/linux/fsi.h @@ -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 */ |