pinctrol: dm: remove the function pinctrl_decode_pin_config

Remove the pinctrl_decode_pin_config() API, because this
function is unused and not compatible with livetree
(it uses fdtdec_get_bool instead of ofnode API).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Patrick Delaunay
2019-10-23 15:44:36 +02:00
committed by Simon Glass
parent 3ff1ff3ff7
commit 1dd49f577b
2 changed files with 0 additions and 25 deletions

View File

@@ -15,18 +15,6 @@
DECLARE_GLOBAL_DATA_PTR;
int pinctrl_decode_pin_config(const void *blob, int node)
{
int flags = 0;
if (fdtdec_get_bool(blob, node, "bias-pull-up"))
flags |= 1 << PIN_CONFIG_BIAS_PULL_UP;
else if (fdtdec_get_bool(blob, node, "bias-pull-down"))
flags |= 1 << PIN_CONFIG_BIAS_PULL_DOWN;
return flags;
}
#if CONFIG_IS_ENABLED(PINCTRL_FULL)
/**
* pinctrl_config_one() - apply pinctrl settings for a single node