Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757636Ab3DKWd5 (ORCPT ); Thu, 11 Apr 2013 18:33:57 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:55819 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754924Ab3DKWdz (ORCPT ); Thu, 11 Apr 2013 18:33:55 -0400 MIME-Version: 1.0 In-Reply-To: <1364986614-15711-1-git-send-email-mika.westerberg@linux.intel.com> References: <1364986614-15711-1-git-send-email-mika.westerberg@linux.intel.com> Date: Fri, 12 Apr 2013 00:33:55 +0200 Message-ID: Subject: Re: [PATCH] gpiolib-acpi: introduce acpi_get_gpio_by_index() helper From: Linus Walleij To: Mika Westerberg Cc: "linux-kernel@vger.kernel.org" , Grant Likely , "Rafael J. Wysocki" , Mathias Nyman , ACPI Devel Maling List 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: 862 Lines: 21 On Wed, Apr 3, 2013 at 12:56 PM, Mika Westerberg wrote: > Instead of open-coding ACPI GPIO resource lookup in each driver, we provide > a helper function analogous to Device Tree version that allows drivers to > specify which GPIO resource they are interested (using an index to the GPIO > resources). The function then finds out the correct resource, translates > the ACPI GPIO number to the corresponding Linux GPIO number and returns > that. > > Signed-off-by: Mika Westerberg Patch applied with Rafael's ACK and pushed. Thanks, 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/