From: Alexandre Courbot Date: Thu, 17 Oct 2013 17:21:36 +0000 (-0700) Subject: gpiolib: export descriptor-based GPIO interface X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~12^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79a9becda8940deb2274b5aa4577c86d52ee7ecb;p=pandora-kernel.git 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 to access the new interface, whereas chips drivers will use The legacy gpio API is now built as inline functions on top of gpiod. Signed-off-by: Alexandre Courbot Signed-off-by: Linus Walleij --- Reading git-diff-tree failed