greybus: protocol: move version_response structure to greybus_protocols.h
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 21 Jul 2015 12:14:11 +0000 (17:44 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 22 Jul 2015 17:11:05 +0000 (10:11 -0700)
Version response structure is also required by external entities like
gbsim and so its structure should be moved to greybus_protocols.h.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/protocol.h

index 839f3a6c88c6f7a6f9be96034a411c3ddd8b7e82..fe4b2dddace2fcff7f140410501f06c70f422b0b 100644 (file)
 #define GB_CONTROL_BUNDLE_ID                   0
 #define GB_CONTROL_CPORT_ID                    2
 
+
+/* version request has no payload */
+struct gb_protocol_version_response {
+       __u8    major;
+       __u8    minor;
+};
+
+/* Control Protocol */
+
 /* Version of the Greybus control protocol we support */
 #define GB_CONTROL_VERSION_MAJOR               0x00
 #define GB_CONTROL_VERSION_MINOR               0x01
index 3f226e3bbe06698dbd24156e5118bad84a37f3a9..758b36ef1f55d51e750c77d6925c6063ac30b05c 100644 (file)
 struct gb_connection;
 struct gb_operation;
 
-/* version request has no payload */
-struct gb_protocol_version_response {
-       __u8    major;
-       __u8    minor;
-};
-
 typedef int (*gb_connection_init_t)(struct gb_connection *);
 typedef void (*gb_connection_exit_t)(struct gb_connection *);
 typedef int (*gb_request_recv_t)(u8, struct gb_operation *);