From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753844Ab3KUKdy (ORCPT ); Thu, 21 Nov 2013 05:33:54 -0500 Received: from mga11.intel.com ([192.55.52.93]:58885 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079Ab3KUKdw (ORCPT ); Thu, 21 Nov 2013 05:33:52 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,743,1378882800"; d="scan'208";a="437208691" Date: Thu, 21 Nov 2013 12:40:06 +0200 From: Mika Westerberg To: Andy Shevchenko Cc: Linus Walleij , David Cohen , "linux-gpio @ vger . kernel . org" , Alexandre Courbot , Sathyanarayanan Kuppuswamy , Len Brown , "linux-kernel @ vger . kernel . org" , Grant Likely , Len Brown Subject: Re: [PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API Message-ID: <20131121104006.GB2281@intel.com> References: <1384957896-3477-1-git-send-email-andriy.shevchenko@linux.intel.com> <1384957896-3477-3-git-send-email-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1384957896-3477-3-git-send-email-andriy.shevchenko@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 20, 2013 at 04:31:35PM +0200, Andy Shevchenko wrote: > diff --git a/include/linux/gpio/sfi.h b/include/linux/gpio/sfi.h > new file mode 100644 > index 0000000..3e111ad > --- /dev/null > +++ b/include/linux/gpio/sfi.h > @@ -0,0 +1,37 @@ > +#ifndef _LINUX_SFI_GPIO_H_ > +#define _LINUX_SFI_GPIO_H_ > + > +#include > +#include > +#include > +#include > + > +#ifdef CONFIG_GPIO_SFI > + > +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. Yeah, we have the same in ACPI version but I'm planning to get rid of it completely.