diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-05-20 16:47:59 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-05-20 22:39:18 -0700 |
commit | 8fd46587dbc478168d799fb12828801250086ced (patch) | |
tree | c4fd08356097afd843eea758b98f769d0f441487 /drivers/staging/greybus | |
parent | greybus: spi: Move structure definitions into gpbridge.h (diff) | |
download | linux-8fd46587dbc478168d799fb12828801250086ced.tar.gz linux-8fd46587dbc478168d799fb12828801250086ced.tar.bz2 linux-8fd46587dbc478168d799fb12828801250086ced.zip |
greybus: protocol: remove leading underscore from _gb_protocol_find()
Remove the unnecessary underscore from _gb_protocol_find().
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>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/protocol.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/greybus/protocol.c b/drivers/staging/greybus/protocol.c index ba4cc0f4ac8c..eed77c3f3a7f 100644 --- a/drivers/staging/greybus/protocol.c +++ b/drivers/staging/greybus/protocol.c @@ -16,7 +16,7 @@ static DEFINE_SPINLOCK(gb_protocols_lock); static LIST_HEAD(gb_protocols); /* Caller must hold gb_protocols_lock */ -static struct gb_protocol *_gb_protocol_find(u8 id, u8 major, u8 minor) +static struct gb_protocol *gb_protocol_find(u8 id, u8 major, u8 minor) { struct gb_protocol *protocol; @@ -119,8 +119,8 @@ int gb_protocol_deregister(struct gb_protocol *protocol) return 0; spin_lock_irq(&gb_protocols_lock); - protocol = _gb_protocol_find(protocol->id, protocol->major, - protocol->minor); + protocol = gb_protocol_find(protocol->id, protocol->major, + protocol->minor); if (protocol) { protocol_count = protocol->count; if (!protocol_count) @@ -142,7 +142,7 @@ struct gb_protocol *gb_protocol_get(u8 id, u8 major, u8 minor) u8 protocol_count; spin_lock_irq(&gb_protocols_lock); - protocol = _gb_protocol_find(id, major, minor); + protocol = gb_protocol_find(id, major, minor); if (protocol) { if (!try_module_get(protocol->owner)) { protocol = NULL; @@ -204,7 +204,7 @@ void gb_protocol_put(struct gb_protocol *protocol) minor = protocol->minor; spin_lock_irq(&gb_protocols_lock); - protocol = _gb_protocol_find(id, major, minor); + protocol = gb_protocol_find(id, major, minor); if (protocol) { protocol_count = protocol->count; if (protocol_count) |