summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.h
diff options
context:
space:
mode:
authorJohan Hovold2016-01-21 17:34:12 +0100
committerGreg Kroah-Hartman2016-01-22 07:45:09 +0100
commit59507e2612379356d93de0bd1d6e0f9a36dca0da (patch)
tree42d5f6491f2aefba379008ed686e71370f1abd2b /drivers/staging/greybus/connection.h
parentgreybus: connection: drop protocol parameter from static interface (diff)
downloadkernel-qcow2-linux-59507e2612379356d93de0bd1d6e0f9a36dca0da.tar.gz
kernel-qcow2-linux-59507e2612379356d93de0bd1d6e0f9a36dca0da.tar.xz
kernel-qcow2-linux-59507e2612379356d93de0bd1d6e0f9a36dca0da.zip
greybus: connection: add helper to create control connections
Add dedicated helper to create control connections. This will allow us to simplify the generic (dynamic) interface. Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.h')
-rw-r--r--drivers/staging/greybus/connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h
index 562bd2b47ac5..cd4a093f6e9b 100644
--- a/drivers/staging/greybus/connection.h
+++ b/drivers/staging/greybus/connection.h
@@ -57,6 +57,7 @@ struct gb_connection {
struct gb_connection *gb_connection_create_static(struct gb_host_device *hd,
u16 hd_cport_id);
+struct gb_connection *gb_connection_create_control(struct gb_interface *intf);
struct gb_connection *gb_connection_create_dynamic(struct gb_interface *intf,
struct gb_bundle *bundle, u16 cport_id,
u8 protocol_id);