[PATCH v2 07/14] gpio: add gpio descriptor initialization helper

Simon Glass sjg at chromium.org
Mon Dec 30 02:21:13 CET 2019


On Tue, 26 Nov 2019 at 01:49, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> Add a helper function gpio_desc_init() to initialize the gpio descriptor;
> with this function the flags will be always set to 0.
>
> It wasn't the case before this patch in dm_gpio_lookup_name.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> Changes in v2:
> - add gpio descriptor initialization helper
>
>  drivers/gpio/gpio-uclass.c | 27 +++++++++++++++++++--------
>  1 file changed, 19 insertions(+), 8 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list