[PATCH 3/3] gpio: Factor out DT flag translation
Simon Glass
sjg at chromium.org
Thu Sep 30 06:08:55 CEST 2021
On Sat, 11 Sept 2021 at 16:06, Samuel Holland <samuel at sholland.org> wrote:
>
> The generic GPIO flags binding is shared across many drivers, some of
> which need their own xlate function. Factor out the flag translation
> code from gpio_xlate_offs_flags so it does not need to be duplicated.
>
> Signed-off-by: Samuel Holland <samuel at sholland.org>
> ---
>
> drivers/gpio/gpio-uclass.c | 50 ++++++++++++++++++++++----------------
> include/asm-generic/gpio.h | 8 ++++++
> 2 files changed, 37 insertions(+), 21 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list