greybus: svc: remove interface->svc pointer
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 24 Jul 2015 10:02:21 +0000 (15:32 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 24 Jul 2015 23:33:20 +0000 (16:33 -0700)
Its not updated/used anymore, remove it. Also move back the struct
gb_svc to svc.c as its not referenced by external users anymore.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Perry Hung <perry@leaflabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.h
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h

index 9a9260c43be4ad682a3a96c7a548e58d96d8e2c0..fc2d29fc7ddb2be4b571a22c81472ff4bc394629 100644 (file)
@@ -14,7 +14,6 @@
 struct gb_interface {
        struct device dev;
        struct gb_control *control;
-       struct gb_svc *svc;
 
        struct list_head bundles;
        struct list_head links; /* greybus_host_device->interfaces */
index 969c3899e9546dbdbd8f182eaf777ccc0954cd93..5f2b2b43b939cd0bd1565ca2441ec3764b0caaaa 100644 (file)
@@ -9,6 +9,12 @@
 
 #include "greybus.h"
 
+struct gb_svc {
+       struct gb_connection    *connection;
+       u8                      version_major;
+       u8                      version_minor;
+};
+
 static struct ida greybus_svc_device_id_map;
 
 /*
index 66497808ee627ceb20dae152bb135d6b6ecc3f6f..ee39479cf9b297563b16cbf6089ee1dc71365654 100644 (file)
 #ifndef __SVC_H
 #define __SVC_H
 
-struct gb_svc {
-       struct gb_connection    *connection;
-       u8                      version_major;
-       u8                      version_minor;
-};
-
+struct gb_svc;
 
 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);