]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: Factor out DT flag translation
authorSamuel Holland <samuel@sholland.org>
Sat, 11 Sep 2021 22:05:53 +0000 (17:05 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 5 Oct 2021 12:50:15 +0000 (08:50 -0400)
commitce8c83bc15efabc66ae85db77534818d715e8db9
treea886c25653f2e6176773729cf2ed7a92d439b151
parentceec01eb39706059ca6f2d8807a68d6d1cbad0c7
gpio: Factor out DT flag translation

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@sholland.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h