greybus: define greybus wide protocol request numbers
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Aug 2015 02:05:57 +0000 (07:35 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 12 Aug 2015 00:48:32 +0000 (17:48 -0700)
Some request numbers (like invalid and get_version) are same across all
protocols. Create common macros for them.

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

index 290b85f6ff6845ac725157644be5985f5e187c94..b95d24bd8e6243a6adcae5d3dabc03d2ab5b53af 100644 (file)
@@ -99,6 +99,10 @@ struct gb_operation_msg_hdr {
 };
 
 
+/* Generic request numbers supported by all modules */
+#define GB_REQUEST_TYPE_INVALID                        0x00
+#define GB_REQUEST_TYPE_PROTOCOL_VERSION       0x01
+
 /* Control Protocol */
 
 /* version request has no payload */