gpio: add gpio descriptor initialization helper
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 13 Jan 2020 10:35:01 +0000 (11:35 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 03:06:54 +0000 (23:06 -0400)
commit9f2b066cda3dd0b4bf583c40610eba347f2c03cd
treeabfe9fc2eb8900c72d449766a916cbe9e8171906
parente3f3a121d8ebe15da868be8afbfb3e2a9ff80d4d
gpio: add gpio descriptor initialization helper

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.

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