greybus: raw: Move request/response structure/definitions to greybus_protocols.h
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 13 Aug 2015 04:34:45 +0000 (10:04 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 14 Aug 2015 02:19:30 +0000 (19:19 -0700)
These must be exposed to external modules, like gbsim. Move them to
greybus_protocols.h file.

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/raw.c

index 0ba11f8629d6736583053653de2b210ba7a06932..09a4466f1a29803e7d7c7ec51d3ceeae34fda3f3 100644 (file)
@@ -823,6 +823,22 @@ struct gb_svc_route_create_request {
        __u8    dev2_id;
 };
 
+
+/* RAW */
+
+/* Version of the Greybus raw protocol we support */
+#define        GB_RAW_VERSION_MAJOR                    0x00
+#define        GB_RAW_VERSION_MINOR                    0x01
+
+/* Greybus raw request types */
+#define        GB_RAW_TYPE_SEND                        0x02
+
+struct gb_raw_send_request {
+       __le32  len;
+       __u8    data[0];
+};
+
+
 /* UART */
 
 /* Version of the Greybus UART protocol we support */
index 215d4216528210186fc466bb957b966830aa1866..ce0f59d08e0de2baabd4648559dceafdfa1d043b 100644 (file)
@@ -28,18 +28,6 @@ struct gb_raw {
        struct device *device;
 };
 
-/* Version of the Greybus raw protocol we support */
-#define        GB_RAW_VERSION_MAJOR                    0x00
-#define        GB_RAW_VERSION_MINOR                    0x01
-
-/* Greybus raw request types */
-#define        GB_RAW_TYPE_SEND                        0x02
-
-struct gb_raw_send_request {
-       __le32  len;
-       __u8    data[0];
-};
-
 struct raw_data {
        struct list_head entry;
        u32 len;