gpiolib: Get rid of devprop prefix in one function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Mar 2023 18:56:00 +0000 (20:56 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 15 Mar 2023 09:40:51 +0000 (10:40 +0100)
The devprop prefix in the devprop_gpiochip_set_names() adds confusion.
Get rid of it.

Note we have more than one function in the same module that handles
one or more device properties. This change will unify the naming schema
for all of them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib.c

index 7c75e0e..8b68a53 100644 (file)
@@ -373,7 +373,7 @@ static int gpiochip_set_desc_names(struct gpio_chip *gc)
 }
 
 /*
- * devprop_gpiochip_set_names - Set GPIO line names using device properties
+ * gpiochip_set_names - Set GPIO line names using device properties
  * @chip: GPIO chip whose lines should be named, if possible
  *
  * Looks for device property "gpio-line-names" and if it exists assigns
@@ -381,7 +381,7 @@ static int gpiochip_set_desc_names(struct gpio_chip *gc)
  * names belong to the underlying firmware node and should not be released
  * by the caller.
  */
-static int devprop_gpiochip_set_names(struct gpio_chip *chip)
+static int gpiochip_set_names(struct gpio_chip *chip)
 {
        struct gpio_device *gdev = chip->gpiodev;
        struct device *dev = &gdev->dev;
@@ -833,7 +833,7 @@ int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
                if (ret)
                        goto err_remove_from_list;
        }
-       ret = devprop_gpiochip_set_names(gc);
+       ret = gpiochip_set_names(gc);
        if (ret)
                goto err_remove_from_list;