dm: pinctrl: Add pinctrl_get_pin_name and pinctrl_get_pins_count
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 24 Oct 2018 12:10:14 +0000 (14:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 21:51:55 +0000 (16:51 -0500)
commit8bbb5b20852aa81024eb7b2dcc3eb58275e83bb0
treeabb664eb3cff6672d0496f0304866e33d362f98d
parentf55a0c0a20cad56440ebe9a9b2999f21ae00f61a
dm: pinctrl: Add pinctrl_get_pin_name and pinctrl_get_pins_count

Add pinctrl_get_pin_name() and pinctrl_get_pins_count() methods
to obtain pin's name and pin's muxing given a pin reference.

This will be used by the new pinmux command.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-uclass.c
include/dm/pinctrl.h