Re: [PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API

2013-11-26 Thread Linus Walleij
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

Re: [PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API

2013-11-26 Thread Linus Walleij
On Thu, Nov 21, 2013 at 5:29 PM, Andy Shevchenko andriy.shevche...@linux.intel.com 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

Re: [PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API

2013-11-21 Thread Mika Westerberg
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 000..3e111ad > --- /dev/null > +++ b/include/linux/gpio/sfi.h > @@ -0,0 +1,37 @@ > +#ifndef _LINUX_SFI_GPIO_H_ > +#define

Re: [PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API

2013-11-21 Thread Mika Westerberg
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 000..3e111ad --- /dev/null +++ b/include/linux/gpio/sfi.h @@ -0,0 +1,37 @@ +#ifndef _LINUX_SFI_GPIO_H_ +#define

[PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API

2013-11-20 Thread Andy Shevchenko
To support some (legacy) firmwares and platforms let's make life easier for their customers. This patch extracts SFI GPIO API from arch/x86/platform/intel-mid/sfi.c and moves it to GPIO descriptor API. Signed-off-by: Andy Shevchenko Cc: Len Brown Cc: Grant Likely Cc: Linus Walleij ---

[PATCH v2 2/3] gpiolib: append SFI helpers for GPIO API

2013-11-20 Thread Andy Shevchenko
To support some (legacy) firmwares and platforms let's make life easier for their customers. This patch extracts SFI GPIO API from arch/x86/platform/intel-mid/sfi.c and moves it to GPIO descriptor API. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Cc: Len Brown