On Fri, Oct 11, 2013 at 8:14 PM, Alexandre Courbot <acourbot@xxxxxxxxxx> wrote: > 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@xxxxxxxxxx> Typically I have applied the patch adding gpio_[un]lock_as_irq() and it conflicts with this. And it requires adding gpiod_* accessors for these functions too... Would you mind rebasing this on top of my "devel" branch? Sorry for the moving target, but after this I think we are ready to merge the gpiod* interface. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html