diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-12 09:19:32 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-08-11 21:57:12 -0700 |
commit | 738599c0dd7fef4d28f416ff9b0b3bc1b07468d2 (patch) | |
tree | 8a0cb2199610fe221823694ad9401bc271c7f120 /drivers/staging/greybus/connection.c | |
parent | 3944a454f1d5634cdcd8b8844199d67a1110dccb (diff) | |
download | linux-stable-738599c0dd7fef4d28f416ff9b0b3bc1b07468d2.tar.gz linux-stable-738599c0dd7fef4d28f416ff9b0b3bc1b07468d2.tar.bz2 linux-stable-738599c0dd7fef4d28f416ff9b0b3bc1b07468d2.zip |
greybus: protocol: Create request structure from within gb_protocol_get_version()
The version request can only send the version of protocol for which it
is initiated and gb_protocol_get_version() has all the information to
create the request structure.
Replace the 'request' and 'request_size' arguments to
gb_protocol_get_version() with a bool to know if the version information
of the protocol should be sent or not.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 0ec5b0dcc145..2b2be3fd1638 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -421,7 +421,7 @@ int gb_connection_init(struct gb_connection *connection) * this for SVC as that is initiated by the SVC. */ if (connection->hd_cport_id != GB_SVC_CPORT_ID) { - ret = gb_protocol_get_version(connection, NULL, 0); + ret = gb_protocol_get_version(connection, false); if (ret) { dev_err(&connection->dev, "Failed to get version CPort-%d (%d)\n", |