summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-104-dio-48e.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2016-02-11 12:28:44 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-02-11 22:29:46 +0300
commit33a68e86fd7741f782c71a0daa9111b352e94445 (patch)
tree96e6ee9894a0513d98e43300dd17bec0a45e36a4 /drivers/gpio/gpio-104-dio-48e.c
parentfdeb8e1547cb9dd39d5d7223b33f3565cf86c28e (diff)
downloadlinux-33a68e86fd7741f782c71a0daa9111b352e94445.tar.xz
gpio: reference count the gpio device for each desc
Every time a descriptor is retrieved from the gpiolib, we issue module_get() to reference count the module supplying the GPIOs. We also need to call device_get() and device_put() as we also reference the backing gpio_device when doing this. Since the sysfs GPIO interface is using gpiod_get() this will also reference count the sysfs requests until all GPIOs are unexported. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-104-dio-48e.c')
0 files changed, 0 insertions, 0 deletions