]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: move descriptors into gpio_device
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 9 Feb 2016 12:51:59 +0000 (13:51 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Feb 2016 19:29:45 +0000 (20:29 +0100)
commit598c08081b5ce6fee7e3812a904092062b8f862c
tree56802f31391f6f4448579f0525b766fb0379e475
parent1c18c14ac158ad7d690bd4b802d0577539a16656
gpio: move descriptors into gpio_device

We need gpio_device to hold the descriptors so that they can
be lifecycled with the struct gpio_device held from userspace.
Move the descriptor array into gpio_device. Also rename it from
"desc" (singularis) to "descs" (pluralis) to reflect the fact
that it is an array.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/linux/gpio/driver.h