OSDN Git Service

greybus: connection: make gb_connection_hd_find() private
authorAlex Elder <elder@linaro.org>
Mon, 8 Jun 2015 17:05:11 +0000 (12:05 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 8 Jun 2015 22:19:56 +0000 (15:19 -0700)
Give gb_connection_hd_find() static scope; it's never used
outside "connection.c".

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

index 6f0d3e9..a774f67 100644 (file)
@@ -14,8 +14,8 @@
 
 static DEFINE_SPINLOCK(gb_connections_lock);
 
-struct gb_connection *gb_connection_hd_find(struct greybus_host_device *hd,
-                                               u16 cport_id)
+static struct gb_connection *
+gb_connection_hd_find(struct greybus_host_device *hd, u16 cport_id)
 {
        struct gb_connection *connection = NULL;
        unsigned long flags;
index d39d476..acf9183 100644 (file)
@@ -51,9 +51,6 @@ void gb_connection_destroy(struct gb_connection *connection);
 int gb_connection_init(struct gb_connection *connection);
 void gb_connection_exit(struct gb_connection *connection);
 
-struct gb_connection *gb_connection_hd_find(struct greybus_host_device *hd,
-                               u16 cport_id);
-
 void greybus_data_rcvd(struct greybus_host_device *hd, u16 cport_id,
                        u8 *data, size_t length);