greybus: move versioning from svc message header to handshake function

The Greybus spec has been updated to improve the efficiency of the
version major/minor information that had been previously carried in
every SVC message header. The version major/minor is now provided
as part of the handshake function.

Update the SVC msg header and handshake function payload definitions
and move the version major/minor validation into the SVC handshake
handling routine.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
diff --git a/drivers/staging/greybus/svc_msg.h b/drivers/staging/greybus/svc_msg.h
index 3f1a934..e84e01c 100644
--- a/drivers/staging/greybus/svc_msg.h
+++ b/drivers/staging/greybus/svc_msg.h
@@ -30,8 +30,6 @@
 struct svc_msg_header {
 	__u8	function_id;	/* enum svc_function_id */
 	__u8	message_type;
-	__u8	version_major;
-	__u8	version_minor;
 	__le16	payload_length;
 };
 
@@ -42,6 +40,8 @@
 };
 
 struct svc_function_handshake {
+	__u8	version_major;
+	__u8	version_minor;
 	__u8	handshake_type;	/* enum svc_function_handshake_type */
 };