From 7c183f70ed5b1fa368559031b1ef2245827f2918 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 1 Apr 2015 20:32:00 +0530 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/bundle.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/staging/greybus/bundle.h') 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); -- cgit v1.2.3-55-g7522