From: Alex Elder Date: Mon, 8 Jun 2015 17:05:11 +0000 (-0500) Subject: greybus: connection: make gb_connection_hd_find() private X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1492 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8bd0ae6e7295a06f8e64dcca1a91bb14ca6c07b0;p=linux-block.git greybus: connection: make gb_connection_hd_find() private Give gb_connection_hd_find() static scope; it's never used outside "connection.c". Signed-off-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 6f0d3e98f800..a774f677279a 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -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; diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h index d39d476d6492..acf91835486d 100644 --- a/drivers/staging/greybus/connection.h +++ b/drivers/staging/greybus/connection.h @@ -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);