pinctrl: Simplify printks with pOF format

Print full device node name with %pOF format, so the code will be a bit
simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Krzysztof Kozlowski
2025-09-12 11:23:52 +02:00
committed by Linus Walleij
parent 334ef450cc
commit 8c2467dea3
2 changed files with 6 additions and 10 deletions

View File

@@ -258,8 +258,7 @@ static int sprd_dt_node_to_map(struct pinctrl_dev *pctldev,
grp = sprd_pinctrl_find_group_by_name(pctl, np->name);
if (!grp) {
dev_err(pctl->dev, "unable to find group for node %s\n",
of_node_full_name(np));
dev_err(pctl->dev, "unable to find group for node %pOF\n", np);
return -EINVAL;
}
@@ -276,16 +275,14 @@ static int sprd_dt_node_to_map(struct pinctrl_dev *pctldev,
if (ret < 0) {
if (ret != -EINVAL)
dev_err(pctl->dev,
"%s: could not parse property function\n",
of_node_full_name(np));
"%pOF: could not parse property function\n", np);
function = NULL;
}
ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
&num_configs);
if (ret < 0) {
dev_err(pctl->dev, "%s: could not parse node property\n",
of_node_full_name(np));
dev_err(pctl->dev, "%pOF: could not parse node property\n", np);
return ret;
}

View File

@@ -274,8 +274,7 @@ static void fill_pin_function(struct device *dev, struct device_node *node,
if (!strcmp(pins[pin].pin.name, name))
break;
if (pin == npins) {
dev_warn(dev, "%s: cannot find pin %s\n",
of_node_full_name(node), name);
dev_warn(dev, "%pOF: cannot find pin %s\n", node, name);
index++;
continue;
}
@@ -283,8 +282,8 @@ static void fill_pin_function(struct device *dev, struct device_node *node,
/* Read the associated mux value. */
muxval = sunxi_pinctrl_dt_read_pinmux(node, index);
if (muxval == INVALID_MUX) {
dev_warn(dev, "%s: invalid mux value for pin %s\n",
of_node_full_name(node), name);
dev_warn(dev, "%pOF: invalid mux value for pin %s\n",
node, name);
index++;
continue;
}