Commit 5ddf738e authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: endo: name routines consistently

Routines should be named this way: gb_<object>_<operation>. Fix all
routines that don't match this.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 12eba9f8
...@@ -62,7 +62,7 @@ static const struct attribute_group *endo_groups[] = { ...@@ -62,7 +62,7 @@ static const struct attribute_group *endo_groups[] = {
NULL, NULL,
}; };
static void greybus_endo_release(struct device *dev) static void gb_endo_release(struct device *dev)
{ {
struct gb_endo *endo = to_gb_endo(dev); struct gb_endo *endo = to_gb_endo(dev);
...@@ -71,7 +71,7 @@ static void greybus_endo_release(struct device *dev) ...@@ -71,7 +71,7 @@ static void greybus_endo_release(struct device *dev)
struct device_type greybus_endo_type = { struct device_type greybus_endo_type = {
.name = "greybus_endo", .name = "greybus_endo",
.release = greybus_endo_release, .release = gb_endo_release,
}; };
...@@ -272,7 +272,7 @@ static bool validate_back_ribs(struct greybus_host_device *hd, ...@@ -272,7 +272,7 @@ static bool validate_back_ribs(struct greybus_host_device *hd,
* Validate the endo-id passed from SVC. Error out if its not a valid Endo, * Validate the endo-id passed from SVC. Error out if its not a valid Endo,
* else return structure representing ribs positions on front and back of Endo. * else return structure representing ribs positions on front and back of Endo.
*/ */
static int gb_validate_endo_id(struct greybus_host_device *hd, static int gb_endo_validate_id(struct greybus_host_device *hd,
struct endo_layout *layout, u16 endo_id) struct endo_layout *layout, u16 endo_id)
{ {
/* Validate Endo Size */ /* Validate Endo Size */
...@@ -434,7 +434,7 @@ struct gb_endo *gb_endo_create(struct greybus_host_device *hd) ...@@ -434,7 +434,7 @@ struct gb_endo *gb_endo_create(struct greybus_host_device *hd)
return NULL; return NULL;
/* First check if the value supplied is a valid endo id */ /* First check if the value supplied is a valid endo id */
if (gb_validate_endo_id(hd, &endo->layout, endo_id)) if (gb_endo_validate_id(hd, &endo->layout, endo_id))
goto free_endo; goto free_endo;
endo->id = endo_id; endo->id = endo_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment