From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756736AbaDVPA0 (ORCPT ); Tue, 22 Apr 2014 11:00:26 -0400 Received: from mail-oa0-f42.google.com ([209.85.219.42]:46621 "EHLO mail-oa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756656AbaDVPAS (ORCPT ); Tue, 22 Apr 2014 11:00:18 -0400 MIME-Version: 1.0 In-Reply-To: <1397544101-18135-3-git-send-email-wens@csie.org> References: <1397544101-18135-1-git-send-email-wens@csie.org> <1397544101-18135-3-git-send-email-wens@csie.org> Date: Tue, 22 Apr 2014 17:00:17 +0200 Message-ID: Subject: Re: [PATCH 2/7] gpiolib: Support purely name based gpiod lookup in device trees From: Linus Walleij To: Chen-Yu Tsai Cc: Johannes Berg , "John W. Linville" , Maxime Ripard , Arnd Bergmann , Heikki Krogerus , Mika Westerberg , Alexandre Courbot , Stephen Warren , "linux-gpio@vger.kernel.org" , linux-wireless , "netdev@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-sunxi Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 15, 2014 at 8:41 AM, Chen-Yu Tsai wrote: > This patch enables gpio-names based gpiod lookup in device tree usage, > which ignores the index passed to gpiod_get_index. If this fails, fall > back to the original function-index ("con_id"-gpios) based lookup scheme, > for backward compatibility and any drivers needing more than one GPIO > for any function. > > Signed-off-by: Chen-Yu Tsai This looks a bit scary and I cannot claim to realize the entire semantic effect of this patch, but if it's the way to go then OK. Acked-by: Linus Walleij Shall I just apply this to the GPIO tree or are you carrying it along with the other stuff? Yours, Linus Walleij