From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH v5 2/4] gpiolib: add gpiod_get_array and gpiod_put_array functions Date: Thu, 5 Mar 2015 09:55:09 +0100 Message-ID: References: <3417970.NJsESPLFsD@pcimr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-oi0-f43.google.com ([209.85.218.43]:37361 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754112AbbCEIzK (ORCPT ); Thu, 5 Mar 2015 03:55:10 -0500 Received: by oigi138 with SMTP id i138so10563680oig.4 for ; Thu, 05 Mar 2015 00:55:09 -0800 (PST) In-Reply-To: <3417970.NJsESPLFsD@pcimr> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Rojhalat Ibrahim Cc: "linux-gpio@vger.kernel.org" , Alexandre Courbot , Alexandre Courbot , Mika Westerberg , "Rafael J. Wysocki" , David Miller , "netdev@vger.kernel.org" On Wed, Feb 11, 2015 at 5:27 PM, Rojhalat Ibrahim wrote: > Introduce new functions for conveniently obtaining and disposing of an entire > array of GPIOs with one function call. > > Suggested-by: Alexandre Courbot > Signed-off-by: Rojhalat Ibrahim > Reviewed-by: Alexandre Courbot > > ACPI part: > Reviewed-by: Mika Westerberg > Tested-by: Mika Westerberg > > DT part: > Tested-by: Rojhalat Ibrahim > --- > Change log: > v5: move the ACPI functions to gpiolib-acpi.c > v4: - use shorter names for members of struct gpio_descs > - rename lut_gpio_count to platform_gpio_count for clarity > - add check for successful memory allocation > - use ERR_CAST() > v3: - rebase on current linux-gpio devel branch > - fix ACPI GPIO counting > - allow for zero-sized arrays > - make the flags argument mandatory for the new functions > - clarify documentation > v2: change interface Patch applied with some fuzzing, check that it ended up correctly in my git (or linux-next). Yours, Linus Walleij