aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-13 10:04:45 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-13 19:19:30 -0700
commitd65e3a22aa3ef28f068cdc38ac82f3e1914cde9a (patch)
tree8d52dedeb3725a81cf04c4cd5d86a6a5b5183ff1 /drivers/staging
parentgreybus: hid: Move request/response structure/definitions to greybus_protocols.h (diff)
downloadlinux-dev-d65e3a22aa3ef28f068cdc38ac82f3e1914cde9a.tar.xz
linux-dev-d65e3a22aa3ef28f068cdc38ac82f3e1914cde9a.zip
greybus: raw: Move request/response structure/definitions to greybus_protocols.h
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h16
-rw-r--r--drivers/staging/greybus/raw.c12
2 files changed, 16 insertions, 12 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index 0ba11f8629d6..09a4466f1a29 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -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 */
diff --git a/drivers/staging/greybus/raw.c b/drivers/staging/greybus/raw.c
index 215d42165282..ce0f59d08e0d 100644
--- a/drivers/staging/greybus/raw.c
+++ b/drivers/staging/greybus/raw.c
@@ -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;