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: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Viresh Kumar 2015-05-20 16:48:01 +05:30 committed by Greg Kroah-Hartman
parent 12eba9f8ef
commit 5ddf738e94

View file

@ -62,7 +62,7 @@ static const struct attribute_group *endo_groups[] = {
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);
@ -71,7 +71,7 @@ static void greybus_endo_release(struct device *dev)
struct device_type greybus_endo_type = {
.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,
* 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.
*/
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)
{
/* Validate Endo Size */
@ -434,7 +434,7 @@ struct gb_endo *gb_endo_create(struct greybus_host_device *hd)
return NULL;
/* 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;
endo->id = endo_id;