gpio: Fix pin's status display for pin with GPIOF_UNUSED function
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Aug 2022 12:09:12 +0000 (14:09 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Sep 2022 13:55:30 +0000 (09:55 -0400)
commita32920897a205c53717d864ae6c44fb6703094c9
tree8aaf680efb29eac13cc3a7a9a8a7df3f10abdf75
parentd7124f0ba42263e6a24a829ca523861650bfec65
gpio: Fix pin's status display for pin with GPIOF_UNUSED function

Even pin with GPIOF_UNUSED function can have a label.
The criteria to add or not a space character is linked to label not to
the used/unused status.

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