]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: add function _dm_gpio_set_dir_flags
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 13 Jan 2020 10:35:03 +0000 (11:35 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 03:06:54 +0000 (23:06 -0400)
commit2cd53ece5d918ffb4d1c28a3ed97d099a72398c2
treef08ff1284d19e53a4d7b7fb4e9393135ce0faa06
parent3d3c237118a3a4d3ca3b5e3fe3f3821d1df74aa8
gpio: add function _dm_gpio_set_dir_flags

Introduce the function _dm_gpio_set_dir_flags to set dir flags
without check if the GPIO is reserved.

Separate the reserved check for "set_dir" and "set_dir_flags".

This patch is a preliminary step to add new ops.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c