
30 Jan
2020
30 Jan
'20
3:18 a.m.
On Mon, 13 Jan 2020 at 03:35, Patrick Delaunay patrick.delaunay@st.com wrote:
Update the flag management in GPIO uclass: the desc->flags is always combined with the requested flags and the GPIO descriptor is updated for further call.
Add a function dm_gpio_get_dir_flags to get dynamically the current dir_flags (configuration and value).
This patch prepare introduction of the dir flags support with new ops.
Signed-off-by: Patrick Delaunay patrick.delaunay@st.com
This patch was part of v2 08/14 = gpio: add ops for configuration with dir flags
Changes in v3:
- Split the previous patch [PATCH v2 08/14] to help review
Changes in v2: None
drivers/gpio/gpio-uclass.c | 27 +++++++++++++++++++++++++-- include/asm-generic/gpio.h | 22 ++++++++++++++++------ 2 files changed, 41 insertions(+), 8 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org