1
0
Fork 0

greybus: connection: name routines consistently

Routines should be named this way: gb_<object>_<operation>. Fix all
routines that don't match this.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Viresh Kumar 2015-05-20 16:48:00 +05:30 committed by Greg Kroah-Hartman
parent 8fd46587db
commit 12eba9f8ef
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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,