summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.h
diff options
context:
space:
mode:
authorJohan Hovold2015-12-07 15:05:34 +0100
committerGreg Kroah-Hartman2015-12-08 21:31:14 +0100
commit0bf1f2441979e290945f4e5af40d76582c61da1e (patch)
tree9656af68832e9aa9594eac0acbbff2c64d5ae66a /drivers/staging/greybus/connection.h
parentgreybus: connection: unbind protocol at exit (diff)
downloadkernel-qcow2-linux-0bf1f2441979e290945f4e5af40d76582c61da1e.tar.gz
kernel-qcow2-linux-0bf1f2441979e290945f4e5af40d76582c61da1e.tar.xz
kernel-qcow2-linux-0bf1f2441979e290945f4e5af40d76582c61da1e.zip
greybus: connection: separate connection creation and enabling
Separate connection creation from enabling. This will ultimately allow connection structures to be created while parsing manifests, but the connections to not be enabled until a driver is bound. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.h')
-rw-r--r--drivers/staging/greybus/connection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h
index 77f77bf64a4e..329b705bd425 100644
--- a/drivers/staging/greybus/connection.h
+++ b/drivers/staging/greybus/connection.h
@@ -63,6 +63,8 @@ static inline bool gb_connection_is_static(struct gb_connection *connection)
return !connection->intf;
}
+int gb_connection_init(struct gb_connection *connection);
+
void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
u8 *data, size_t length);