From 5ddf738e944b652e8d2ddb17f97c0c72ee05667c Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 20 May 2015 16:48:01 +0530 Subject: [PATCH] greybus: endo: name routines consistently Routines should be named this way: gb__. Fix all routines that don't match this. Signed-off-by: Viresh Kumar Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/endo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/endo.c b/drivers/staging/greybus/endo.c index 80d9397c565f..42f26f07b52e 100644 --- a/drivers/staging/greybus/endo.c +++ b/drivers/staging/greybus/endo.c @@ -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; -- 2.39.2