gpiolib: add gpiod_get() and gpiod_put() functions
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 17 Oct 2013 17:21:38 +0000 (10:21 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 19 Oct 2013 21:24:56 +0000 (23:24 +0200)
commitbae48da237fcedd7ad09569025483b988635efb7
tree51d82d78acc5e248623dd73d9e5deb2ce4f0e869
parentaf8b6375a8291fe2cf77707f3edec86b98a999cc
gpiolib: add gpiod_get() and gpiod_put() functions

Add gpiod_get(), gpiod_get_index() and gpiod_put() functions that
provide safer management of GPIOs.

These functions put the GPIO framework in line with the conventions of
other frameworks in the kernel, and help ensure every GPIO is declared
properly and valid while it is used.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/devres.c
drivers/gpio/gpiolib.c
include/linux/gpio/consumer.h
include/linux/gpio/driver.h
This page took 0.031352 seconds and 5 git commands to generate.