Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1537369 > unrolled thread
| Started by | Chris Bostic <christopher.lee.bostic@gmail.com> |
|---|---|
| First post | 2016-12-07 01:20 +0100 |
| Last post | 2016-12-07 01:20 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 02/16] drivers/fsi: Add device & driver definitions Chris Bostic <christopher.lee.bostic@gmail.com> - 2016-12-07 01:20 +0100
| From | Chris Bostic <christopher.lee.bostic@gmail.com> |
|---|---|
| Date | 2016-12-07 01:20 +0100 |
| Subject | [PATCH 02/16] drivers/fsi: Add device & driver definitions |
| Message-ID | <sLy7M-GS-29@gated-at.bofh.it> |
From: Jeremy Kerr <jk@ozlabs.org>
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>
---
include/linux/fsi.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/linux/fsi.h b/include/linux/fsi.h
index 47aa181..f73886a 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 */
--
1.8.2.2
Back to top | Article view | linux.kernel
csiph-web