summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-03-07 21:25:57 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-03-15 12:43:57 +0300
commit7aa90f9055c16c79c0ad174c726f95723d122fe6 (patch)
tree6016346976b0c0d555873d0687828345e3359c71 /drivers/gpio
parent5b0ad5b24327d44b8307e822d160a3d48a70e87c (diff)
downloadlinux-7aa90f9055c16c79c0ad174c726f95723d122fe6.tar.xz
gpiolib: Move gpiodevice_*() to gpiodev namespace
The functions that operates on the same device object would have the same namespace for better code understanding and maintenance. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 8b68a53704bc..0589451e65cb 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -572,7 +572,7 @@ bool gpiochip_line_is_valid(const struct gpio_chip *gc,
}
EXPORT_SYMBOL_GPL(gpiochip_line_is_valid);
-static void gpiodevice_release(struct device *dev)
+static void gpiodev_release(struct device *dev)
{
struct gpio_device *gdev = to_gpio_device(dev);
unsigned long flags;
@@ -616,7 +616,7 @@ static int gpiochip_setup_dev(struct gpio_device *gdev)
return ret;
/* From this point, the .release() function cleans up gpio_device */
- gdev->dev.release = gpiodevice_release;
+ gdev->dev.release = gpiodev_release;
ret = gpiochip_sysfs_register(gdev);
if (ret)