diff options
author | Alex Elder | 2014-10-02 19:30:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-10-03 06:22:45 +0200 |
commit | ad1c449eb905ac1bf819afe9b799c11a6cf304a6 (patch) | |
tree | 794a1104eefa999886c7a6ddb25f1c8bbab7547f /drivers/staging/greybus/connection.c | |
parent | greybus: get rid of functions now... (diff) | |
download | kernel-qcow2-linux-ad1c449eb905ac1bf819afe9b799c11a6cf304a6.tar.gz kernel-qcow2-linux-ad1c449eb905ac1bf819afe9b799c11a6cf304a6.tar.xz kernel-qcow2-linux-ad1c449eb905ac1bf819afe9b799c11a6cf304a6.zip |
greybus: record connection protocol
Record the protocol association with a connection when it gets
created.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index f3f774d2ed7b..d63048c4f7de 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -23,7 +23,7 @@ * pointer otherwise. */ struct gb_connection *gb_connection_create(struct gb_interface *interface, - u16 cport_id) + u16 cport_id, enum greybus_protocol protocol) { struct gb_connection *connection; struct greybus_host_device *hd; @@ -41,6 +41,8 @@ struct gb_connection *gb_connection_create(struct gb_interface *interface, connection->hd = hd; /* XXX refcount? */ connection->interface = interface; /* XXX refcount? */ connection->interface_cport_id = cport_id; + connection->protocol = protocol; + INIT_LIST_HEAD(&connection->operations); atomic_set(&connection->op_cycle, 0); |