Re: [PATCH 1/2] gpio: Adjust of_xlate API to support multiple GPIO chips
From: Arnd Bergmann
Date: Fri May 18 2012 - 05:36:44 EST
On Friday 18 May 2012, Roland Stigge wrote:
> From: Grant Likely <grant.likely@xxxxxxxxxxxx>
>
> This patch changes the of_xlate API to make it possible for multiple
> gpio_chips to refer to the same device tree node. This is useful for
> banked GPIO controllers that use multiple gpio_chips for a single
> device. With this change the core code will try calling of_xlate on
> each gpio_chip that references the device_node and will return the
> gpio number for the first one to return 'true'.
>
> Cc: Roland Stigge <stigge@xxxxxxxxx>
> Signed-off-by: Grant Likely <grant.likely@xxxxxxxxxxxx>
> Tested-by: Roland Stigge <stigge@xxxxxxxxx>
>
Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/