summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/svc.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-03 17:00:30 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-08 11:44:25 -0700
commit6ceb8fdeaec665642de944ee47d11440e72a5e26 (patch)
tree61bb990a15125a95700b6575883d0a4e006fe746 /drivers/staging/greybus/svc.h
parentab69c4cea3b4ddf6bce4db810db37a3911b08e15 (diff)
greybus: svc: save pointer to struct gb_svc in struct gb_interface
Its another special protocol (just like control protocol) and is required to be accessed from other files, lets save a pointer to it in interface structure. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/svc.h')
-rw-r--r--drivers/staging/greybus/svc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/greybus/svc.h b/drivers/staging/greybus/svc.h
index b039aea4c409..ebabe5ff7c6d 100644
--- a/drivers/staging/greybus/svc.h
+++ b/drivers/staging/greybus/svc.h
@@ -10,7 +10,12 @@
#ifndef __SVC_H
#define __SVC_H
-struct gb_svc;
+struct gb_svc {
+ struct gb_connection *connection;
+ u8 version_major;
+ u8 version_minor;
+};
+
int gb_svc_intf_device_id(struct gb_svc *svc, u8 intf_id, u8 device_id);
int gb_svc_intf_reset(struct gb_svc *svc, u8 intf_id);