From: Viresh Kumar Date: Tue, 11 Aug 2015 02:05:57 +0000 (+0530) Subject: greybus: define greybus wide protocol request numbers X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1283^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b11a45d29f52c94fdea1d8f1c7baa25cb7368bb;p=karo-tx-linux.git greybus: define greybus wide protocol request numbers Some request numbers (like invalid and get_version) are same across all protocols. Create common macros for them. Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index 290b85f6ff68..b95d24bd8e62 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -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 */