drivers/fsi: Add slave definition
PATCH v2 4/18 drivers/fsi: Add slave definition
From: Jeremy Kerr <[email protected]>
Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices.
Signed-off-by Jeremy Kerr <[email protected]>
Signed-off-by Chris Bostic <[email protected]>
--- drivers/fsi/fsi-core.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/fsi/fsi-core.c +9 -0
@@ -22,6 +22,15 @@static DEFINE_IDA (master_ida); +struct fsi_slave { +struct device dev; +struct fsi_master *master; +int link; +uint8_t id; +}; + +#define to_fsi_slave (d) container_of(d, struct fsi_slave, dev) +/* FSI master support */ int fsi_master_register (struct fsi_master *master)
Signature · 1 line
1.8.2.2