[lkml]   [2014]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/7] gpiolib: Support purely name based gpiod lookup in device trees
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?

Linus Walleij

 \ /
  Last update: 2014-04-23 00:41    [W:0.281 / U:21.364 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site