]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drivers/fsi: Add slave definition
authorJeremy Kerr <jk@ozlabs.org>
Tue, 6 Jun 2017 21:08:37 +0000 (16:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:52:07 +0000 (11:52 +0200)
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 <jk@ozlabs.org>
Signed-off-by: Chris Bostic <cbostic@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fsi/fsi-core.c

index ca02913866f52c5801556f08ccb3e4e7d0959166..2f19509fa1da88b924cb30d7ef06e2db21222810 100644 (file)
 
 static DEFINE_IDA(master_ida);
 
+struct fsi_slave {
+       struct device           dev;
+       struct fsi_master       *master;
+       int                     id;
+       int                     link;
+       uint32_t                size;   /* size of slave address space */
+};
+
+#define to_fsi_slave(d) container_of(d, struct fsi_slave, dev)
+
 /* FSI master support */
 int fsi_master_register(struct fsi_master *master)
 {