aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/interface.c
diff options
context:
space:
mode:
authorGravatar Viresh Kumar <viresh.kumar@linaro.org> 2015-07-21 17:44:18 +0530
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2015-07-22 10:12:41 -0700
commitd3d448406772e421fb7ed8efd4d02d96cb2ab6f9 (patch)
tree2b78ac7e837816669044de1d603274f10763595b /drivers/staging/greybus/interface.c
parentgreybus: interface: Update gb_create_control_connection() to support SVC prot... (diff)
downloadlinux-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.tar.gz
linux-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.tar.bz2
linux-d3d448406772e421fb7ed8efd4d02d96cb2ab6f9.zip
greybus: svc: Add helpers to create AP<->SVC connection
SVC connection is required before the AP knows its position on the endo and type of endo. To enable message processing between the AP and SVC at this time, we need a partially initialized connection which can handle these messages. Once the AP receives more information from the SVC, it can discard this partially initialized connection and create a proper one, tied to a bundle and interface. Destroying the partially initialized connection is a bit tricky, as it is required to send a response to svc-hello. That part will be properly fixed separately. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.c')
-rw-r--r--drivers/staging/greybus/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c
index 6d6128570837..f1e2956b25a7 100644
--- a/drivers/staging/greybus/interface.c
+++ b/drivers/staging/greybus/interface.c
@@ -183,7 +183,7 @@ put_module:
/*
* Tear down a previously set up module.
*/
-static void gb_interface_destroy(struct gb_interface *intf)
+void gb_interface_destroy(struct gb_interface *intf)
{
struct gb_module *module;
struct gb_bundle *bundle;