diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-07 20:25:57 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-03-15 10:43:57 +0100 |
commit | 7aa90f9055c16c79c0ad174c726f95723d122fe6 (patch) | |
tree | 6016346976b0c0d555873d0687828345e3359c71 /drivers/gpio/gpiolib.c | |
parent | 5b0ad5b24327d44b8307e822d160a3d48a70e87c (diff) | |
download | linux-stable-7aa90f9055c16c79c0ad174c726f95723d122fe6.tar.gz linux-stable-7aa90f9055c16c79c0ad174c726f95723d122fe6.tar.bz2 linux-stable-7aa90f9055c16c79c0ad174c726f95723d122fe6.zip |
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/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 4 |
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) |