]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: endo: name routines consistently
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 20 May 2015 11:18:01 +0000 (16:48 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 May 2015 05:39:18 +0000 (22:39 -0700)
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>
drivers/staging/greybus/endo.c

index 80d9397c565f16e5efe873faabb372346e9fe660..42f26f07b52ea396d7046cd220516e9fbe755313 100644 (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;