summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/connection.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-21 17:44:16 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-22 10:11:05 -0700
commit75662e5ca9e0d85fd3e94e51712e79c18c10064f (patch)
treebf12c2223d8f63257b0a8ca23fd04823710aa6b6 /drivers/staging/greybus/connection.h
parent007f979216bda08bb899c78d4f20c229d5fe6845 (diff)
greybus: connection: Allow a bundle-less connection
We need a bundle-less connection for AP's SVC protocol, as that will be used much before the endo layout and interface-id of the AP is known to greybus core. This updates gb_connection_create_range() to take few more arguments, which were earlier fetched from the 'bundle' pointer. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.h')
-rw-r--r--drivers/staging/greybus/connection.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h
index bba14b527fed..d8fbce402955 100644
--- a/drivers/staging/greybus/connection.h
+++ b/drivers/staging/greybus/connection.h
@@ -47,9 +47,10 @@ struct gb_connection {
struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
u16 cport_id, u8 protocol_id);
-struct gb_connection *gb_connection_create_range(struct gb_bundle *bundle,
- u16 cport_id, u8 protocol_id, u32 ida_start,
- u32 ida_end);
+struct gb_connection *gb_connection_create_range(struct greybus_host_device *hd,
+ struct gb_bundle *bundle, struct device *parent,
+ u16 cport_id, u8 protocol_id, u32 ida_start,
+ u32 ida_end);
void gb_connection_destroy(struct gb_connection *connection);
int gb_connection_init(struct gb_connection *connection);