]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
greybus: greybus_protocols: remove control-protocol version
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:13 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
Remove control-protocol version from the exported protocol definitions
as it is an implementation detail that makes no sense to export.

Currently gbsim uses the kernel's control-protocol version definitions
directly instead of reporting the version of the protocol it actually
implements.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/control.c
drivers/staging/greybus/greybus_protocols.h

index 12a9ecac4111f481f713546c88d569de0d6e3686..d79807c10b98d0d51f2e2b8eda6bafc06ef7941a 100644 (file)
 #include <linux/slab.h>
 #include "greybus.h"
 
+/* Highest control-protocol version supported */
+#define GB_CONTROL_VERSION_MAJOR       0
+#define GB_CONTROL_VERSION_MINOR       1
+
+
 /* Get Manifest's size from the interface */
 int gb_control_get_manifest_size_operation(struct gb_interface *intf)
 {
index 55e99b7083f3d67eeda0271cca0652f038c334f5..c563e7454d9c4bc33187982809b9bdc837b16ae1 100644 (file)
@@ -115,10 +115,6 @@ struct gb_protocol_version_response {
 
 /* Control Protocol */
 
-/* Version of the Greybus control protocol we support */
-#define GB_CONTROL_VERSION_MAJOR               0x00
-#define GB_CONTROL_VERSION_MINOR               0x01
-
 /* Greybus control request types */
 #define GB_CONTROL_TYPE_PROBE_AP               0x02
 #define GB_CONTROL_TYPE_GET_MANIFEST_SIZE      0x03