mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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>
This commit is contained in:
parent
5b0ad5b243
commit
7aa90f9055
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue