Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760221Ab3JPILN (ORCPT ); Wed, 16 Oct 2013 04:11:13 -0400 Received: from mail-ie0-f170.google.com ([209.85.223.170]:55459 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760018Ab3JPILI (ORCPT ); Wed, 16 Oct 2013 04:11:08 -0400 MIME-Version: 1.0 In-Reply-To: <1381515273-25466-2-git-send-email-acourbot@nvidia.com> References: <1381515273-25466-1-git-send-email-acourbot@nvidia.com> <1381515273-25466-2-git-send-email-acourbot@nvidia.com> Date: Wed, 16 Oct 2013 10:11:08 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] gpiolib: export descriptor-based GPIO interface From: Linus Walleij To: Alexandre Courbot Cc: Arnd Bergmann , Grant Likely , Mika Westerberg , Alexandre Courbot , "Rafael J. Wysocki" , Mathias Nyman , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "devicetree@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1326 Lines: 33 On Fri, Oct 11, 2013 at 8:14 PM, Alexandre Courbot 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 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 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/