aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/interface.c
diff options
context:
space:
mode:
authorGravatar Viresh Kumar <viresh.kumar@linaro.org> 2015-05-20 17:33:51 +0530
committerGravatar Greg Kroah-Hartman <gregkh@google.com> 2015-05-20 22:39:18 -0700
commit51b5d8d783fe8ee6b272f09ef645747e53166c7f (patch)
treea4b156fe354f144ea0b4cb68aad6b9c8d7ac8c05 /drivers/staging/greybus/interface.c
parentgreybus: endo: name routines consistently (diff)
downloadlinux-51b5d8d783fe8ee6b272f09ef645747e53166c7f.tar.gz
linux-51b5d8d783fe8ee6b272f09ef645747e53166c7f.tar.bz2
linux-51b5d8d783fe8ee6b272f09ef645747e53166c7f.zip
greybus: interface: 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>
Diffstat (limited to 'drivers/staging/greybus/interface.c')
-rw-r--r--drivers/staging/greybus/interface.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c
index 28b3c4fccf24..7a4c7dc2e941 100644
--- a/drivers/staging/greybus/interface.c
+++ b/drivers/staging/greybus/interface.c
@@ -54,7 +54,7 @@ struct gb_interface *gb_interface_find(struct greybus_host_device *hd,
return NULL;
}
-static void greybus_interface_release(struct device *dev)
+static void gb_interface_release(struct device *dev)
{
struct gb_interface *intf = to_gb_interface(dev);
@@ -63,7 +63,7 @@ static void greybus_interface_release(struct device *dev)
struct device_type greybus_interface_type = {
.name = "greybus_interface",
- .release = greybus_interface_release,
+ .release = gb_interface_release,
};
/*
@@ -161,12 +161,12 @@ static void gb_interface_destroy(struct gb_interface *intf)
}
/**
- * gb_add_interface
+ * gb_interface_add
*
* Pass in a buffer that _should_ contain a Greybus manifest
* and register a greybus device structure with the kernel core.
*/
-void gb_add_interface(struct greybus_host_device *hd, u8 interface_id, u8 *data,
+void gb_interface_add(struct greybus_host_device *hd, u8 interface_id, u8 *data,
int size)
{
struct gb_interface *intf;
@@ -201,7 +201,7 @@ err_parse:
gb_interface_destroy(intf);
}
-void gb_remove_interface(struct greybus_host_device *hd, u8 interface_id)
+void gb_interface_remove(struct greybus_host_device *hd, u8 interface_id)
{
struct gb_interface *intf = gb_interface_find(hd, interface_id);
@@ -212,7 +212,7 @@ void gb_remove_interface(struct greybus_host_device *hd, u8 interface_id)
interface_id);
}
-void gb_remove_interfaces(struct greybus_host_device *hd)
+void gb_interfaces_remove(struct greybus_host_device *hd)
{
struct gb_interface *intf, *temp;