summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/bundle.h
diff options
context:
space:
mode:
authorViresh Kumar2015-04-01 17:02:00 +0200
committerGreg Kroah-Hartman2015-04-06 11:34:39 +0200
commit7c183f70ed5b1fa368559031b1ef2245827f2918 (patch)
treebeb98fc07993f3cdec235b54f61c46f456c9bce1 /drivers/staging/greybus/bundle.h
parentgreybus: hid: Use payload-size to get report size (diff)
downloadkernel-qcow2-linux-7c183f70ed5b1fa368559031b1ef2245827f2918.tar.gz
kernel-qcow2-linux-7c183f70ed5b1fa368559031b1ef2245827f2918.tar.xz
kernel-qcow2-linux-7c183f70ed5b1fa368559031b1ef2245827f2918.zip
greybus: bundle: Create bundles using bundle descriptors
Currently we are creating bundles based on interface descriptors. An interface can have one or more bundles associated with it and so a bundle must be created based on a bundle descriptor. Also get class_type from bundle descriptor. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.h')
-rw-r--r--drivers/staging/greybus/bundle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bundle.h b/drivers/staging/greybus/bundle.h
index 62969cf0fa1f..385c90a5e9f8 100644
--- a/drivers/staging/greybus/bundle.h
+++ b/drivers/staging/greybus/bundle.h
@@ -17,6 +17,7 @@ struct gb_bundle {
struct device dev;
struct gb_interface *intf;
u8 id;
+ u8 class_type;
u8 device_id;
struct list_head connections;
@@ -27,7 +28,8 @@ struct gb_bundle {
#define GB_DEVICE_ID_BAD 0xff
/* Greybus "private" definitions" */
-struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 module_id);
+struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
+ u8 class_type);
void gb_bundle_destroy(struct gb_interface *intf);
int gb_bundle_init(struct gb_interface *intf, u8 module_id, u8 device_id);