summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.h
diff options
context:
space:
mode:
authorJohan Hovold2015-12-07 15:05:36 +0100
committerGreg Kroah-Hartman2015-12-08 21:31:14 +0100
commit2c848944c14cf9c74c298b2459cc39dc3c757f25 (patch)
tree0391f472ba611a95dff83228acc4a8d4b611143d /drivers/staging/greybus/connection.h
parentgreybus: hd: initialise device last (diff)
downloadkernel-qcow2-linux-2c848944c14cf9c74c298b2459cc39dc3c757f25.tar.gz
kernel-qcow2-linux-2c848944c14cf9c74c298b2459cc39dc3c757f25.tar.xz
kernel-qcow2-linux-2c848944c14cf9c74c298b2459cc39dc3c757f25.zip
greybus: hd: make svc-connection life time coincide with host-device
Create the svc-connection as part of the host device, and destroy it in the host-device destructor. The svc-connection is enabled when registering the host device, and disabled when the host device is deregistered. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h
index 329b705bd425..b795b44c1859 100644
--- a/drivers/staging/greybus/connection.h
+++ b/drivers/staging/greybus/connection.h
@@ -64,6 +64,7 @@ static inline bool gb_connection_is_static(struct gb_connection *connection)
}
int gb_connection_init(struct gb_connection *connection);
+void gb_connection_exit(struct gb_connection *connection);
void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
u8 *data, size_t length);