summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bundle.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2014-12-12 23:10:16 +0100
committerGreg Kroah-Hartman2014-12-13 19:35:33 +0100
commit3bdec69931d889f2ee5dccafbc8cee6a364bb249 (patch)
tree3494f92a6d47e84893939d8b9f7c904da3bbcd2d /drivers/staging/greybus/bundle.h
parentgreybus: add Linaro copyrights (diff)
downloadkernel-qcow2-linux-3bdec69931d889f2ee5dccafbc8cee6a364bb249.tar.gz
kernel-qcow2-linux-3bdec69931d889f2ee5dccafbc8cee6a364bb249.tar.xz
kernel-qcow2-linux-3bdec69931d889f2ee5dccafbc8cee6a364bb249.zip
greybus: bundle: rename interface.[c|h] to bundle.[c|h]
We are renameing the "interface" term to "bundle" so rename the files before we start changing structure names to make it easier for people to see what really is happening in the changes. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/bundle.h')
-rw-r--r--drivers/staging/greybus/bundle.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/staging/greybus/bundle.h b/drivers/staging/greybus/bundle.h
new file mode 100644
index 000000000000..c0c66b851c5d
--- /dev/null
+++ b/drivers/staging/greybus/bundle.h
@@ -0,0 +1,35 @@
+/*
+ * Greybus interfaces
+ *
+ * Copyright 2014 Google Inc.
+ * Copyright 2014 Linaro Ltd.
+ *
+ * Released under the GPLv2 only.
+ */
+
+#ifndef __INTERFACE_H
+#define __INTERFACE_H
+
+#include <linux/list.h>
+
+struct gb_interface {
+ struct device dev;
+ struct gb_interface_block *gb_ib;
+ u8 id;
+ u8 device_id;
+ struct list_head connections;
+
+ struct list_head links; /* module->interfaces */
+};
+#define to_gb_interface(d) container_of(d, struct gb_interface, dev)
+
+struct gb_interface *gb_interface_create(struct gb_interface_block *gb_ib, u8 module_id);
+void gb_interface_destroy(struct gb_interface_block *gb_ib);
+int gb_interface_init(struct gb_interface_block *gb_ib, u8 module_id, u8 device_id);
+
+struct gb_interface *gb_interface_find(struct gb_interface_block *gb_ib, u8 interface_id);
+
+int gb_interface_connections_init(struct gb_interface *interface);
+void gb_interface_connections_exit(struct gb_interface *interface);
+
+#endif /* __INTERFACE_H */