summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
authorAlexandre Courbot2013-10-17 19:21:36 +0200
committerLinus Walleij2013-10-19 23:24:45 +0200
commit79a9becda8940deb2274b5aa4577c86d52ee7ecb (patch)
tree2e10b344abcf76446ff97855d280fe9b7fb34ef0 /drivers/gpio/gpiolib-of.c
parentMerge tag 'v3.12-rc6' into devel (diff)
downloadkernel-qcow2-linux-79a9becda8940deb2274b5aa4577c86d52ee7ecb.tar.gz
kernel-qcow2-linux-79a9becda8940deb2274b5aa4577c86d52ee7ecb.tar.xz
kernel-qcow2-linux-79a9becda8940deb2274b5aa4577c86d52ee7ecb.zip
gpiolib: export descriptor-based GPIO interface
This patch exports the gpiod_* family of API functions, a safer alternative to the legacy GPIO interface. Differences between the gpiod and legacy gpio APIs are: - gpio works with integers, whereas gpiod operates on opaque handlers which cannot be forged or used before proper acquisition - gpiod get/set functions are aware of the active low state of a GPIO - gpio consumers should now include <linux/gpio/consumer.h> to access the new interface, whereas chips drivers will use <linux/gpio/driver.h> The legacy gpio API is now built as inline functions on top of gpiod. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
0 files changed, 0 insertions, 0 deletions