From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754984Ab3KZJhU (ORCPT ); Tue, 26 Nov 2013 04:37:20 -0500 Received: from mail-ob0-f175.google.com ([209.85.214.175]:60803 "EHLO mail-ob0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754887Ab3KZJhQ (ORCPT ); Tue, 26 Nov 2013 04:37:16 -0500 MIME-Version: 1.0 In-Reply-To: <1385051340.1871.2.camel@smile> References: <1384957896-3477-1-git-send-email-andriy.shevchenko@linux.intel.com> <1384957896-3477-3-git-send-email-andriy.shevchenko@linux.intel.com> <20131121104006.GB2281@intel.com> <1385051340.1871.2.camel@smile> Date: Tue, 26 Nov 2013 10:37:15 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API From: Linus Walleij To: Andy Shevchenko Cc: Mika Westerberg , David Cohen , "linux-gpio @ vger . kernel . org" , Alexandre Courbot , Sathyanarayanan Kuppuswamy , Len Brown , "linux-kernel @ vger . kernel . org" , Grant Likely , Len Brown 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 On Thu, Nov 21, 2013 at 5:29 PM, Andy Shevchenko wrote: > On Thu, 2013-11-21 at 12:40 +0200, Mika Westerberg wrote: >> On Wed, Nov 20, 2013 at 04:31:35PM +0200, Andy Shevchenko wrote: >> > +struct gpio_desc *sfi_get_gpiod_by_name(const char *name); >> >> I'm wondering should this function be exported at all? What the drivers >> should be using is gpiod_get_xxx() APIs and not DT/ACPI/SFI specific >> interfaces. > > I won't mix this with generic stuff since we have really few users of > SFI and there should be no new users at all. > >> Yeah, we have the same in ACPI version but I'm planning to get rid of it >> completely. > > I'm okay to move to this direction, if Linus and others are okay with > it. Go for it. Mika is right that we need to get rid of any custom calls and this is the way ACPI is moving too... Yours, Linus Walleij