OSDN Git Service

greybus: protocol: Create request structure from within gb_protocol_get_version()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 12 Aug 2015 03:49:32 +0000 (09:19 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 12 Aug 2015 04:57:12 +0000 (21:57 -0700)
commit738599c0dd7fef4d28f416ff9b0b3bc1b07468d2
tree8a0cb2199610fe221823694ad9401bc271c7f120
parent3944a454f1d5634cdcd8b8844199d67a1110dccb
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>
drivers/staging/greybus/connection.c
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h