提交 eea11b0b 编写于 作者: L Linus Walleij

pinctrl: abx500: retire phandle config mechanism

The abx500 pin control driver supported a method of fetching the
generic config from a phandle to a separate node using the
"ste,config" as a phandle. This is not used in any device trees
and not documented in the bindings, so drop this support.
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 0564f7d9
...@@ -891,9 +891,7 @@ static int abx500_dt_subnode_to_map(struct pinctrl_dev *pctldev, ...@@ -891,9 +891,7 @@ static int abx500_dt_subnode_to_map(struct pinctrl_dev *pctldev,
const char *function = NULL; const char *function = NULL;
unsigned long *configs; unsigned long *configs;
unsigned int nconfigs = 0; unsigned int nconfigs = 0;
bool has_config = 0;
struct property *prop; struct property *prop;
struct device_node *np_config;
ret = of_property_read_string(np, "function", &function); ret = of_property_read_string(np, "function", &function);
if (ret >= 0) { if (ret >= 0) {
...@@ -917,17 +915,7 @@ static int abx500_dt_subnode_to_map(struct pinctrl_dev *pctldev, ...@@ -917,17 +915,7 @@ static int abx500_dt_subnode_to_map(struct pinctrl_dev *pctldev,
} }
ret = pinconf_generic_parse_dt_config(np, &configs, &nconfigs); ret = pinconf_generic_parse_dt_config(np, &configs, &nconfigs);
if (nconfigs) if (nconfigs) {
has_config = 1;
np_config = of_parse_phandle(np, "ste,config", 0);
if (np_config) {
ret = pinconf_generic_parse_dt_config(np_config, &configs,
&nconfigs);
if (ret)
goto exit;
has_config |= nconfigs;
}
if (has_config) {
const char *gpio_name; const char *gpio_name;
const char *pin; const char *pin;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册