From 12eba9f8ef4e71eed17b08b89835c758c2a0c473 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 20 May 2015 16:48:00 +0530 Subject: [PATCH] greybus: connection: name routines consistently Routines should be named this way: gb__. Fix all routines that don't match this. Signed-off-by: Viresh Kumar Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/connection.c | 4 ++-- drivers/staging/greybus/connection.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 51d505e7017d..e87521ec526d 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -14,7 +14,7 @@ static DEFINE_SPINLOCK(gb_connections_lock); -struct gb_connection *gb_hd_connection_find(struct greybus_host_device *hd, +struct gb_connection *gb_connection_hd_find(struct greybus_host_device *hd, u16 cport_id) { struct gb_connection *connection = NULL; @@ -40,7 +40,7 @@ void greybus_data_rcvd(struct greybus_host_device *hd, u16 cport_id, { struct gb_connection *connection; - connection = gb_hd_connection_find(hd, cport_id); + connection = gb_connection_hd_find(hd, cport_id); if (!connection) { dev_err(hd->parent, "nonexistent connection (%zu bytes dropped)\n", length); diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h index 7febf4e03049..93886b4177c9 100644 --- a/drivers/staging/greybus/connection.h +++ b/drivers/staging/greybus/connection.h @@ -53,7 +53,7 @@ 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_hd_connection_find(struct greybus_host_device *hd, +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, -- 2.20.1