greybus: fix connection header declarations
authorAlex Elder <elder@linaro.org>
Thu, 2 Oct 2014 17:30:01 +0000 (12:30 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 3 Oct 2014 04:22:04 +0000 (21:22 -0700)
Changes to the create/destroy connection functions were not properly
reflected in the header file.  Fix that.  There's also no need to
include anything other than "greybus.h".

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.h

index c653c95..6094fb4 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/list.h>
 
 #include "greybus.h"
-#include "function.h"
 
 struct gb_connection {
        struct gb_function              *function;
@@ -25,9 +24,9 @@ struct gb_connection {
        atomic_t                        op_cycle;
 };
 
-bool gb_connection_setup(struct greybus_host_device *hd, u16 cport_id,
-                               struct gb_function *function);
-void gb_connection_teardown(struct gb_connection *connection);
+struct gb_connection *gb_connection_create(struct greybus_host_device *hd,
+                               u16 cport_id, struct gb_function *function);
+void gb_connection_destroy(struct gb_connection *connection);
 
 u16 gb_connection_op_id(struct gb_connection *connection);