mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
gpio: Convert to using %pOFn instead of device_node.name
In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Linus Walleij <linus.walleij@linaro.org> Cc: linux-gpio@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
9ce3ebe973
commit
62cdcb6c57
1 changed files with 2 additions and 2 deletions
|
@ -348,8 +348,8 @@ static struct gpio_desc *of_parse_own_gpio(struct device_node *np,
|
|||
else if (of_property_read_bool(np, "output-high"))
|
||||
*dflags |= GPIOD_OUT_HIGH;
|
||||
else {
|
||||
pr_warn("GPIO line %d (%s): no hogging state specified, bailing out\n",
|
||||
desc_to_gpio(desc), np->name);
|
||||
pr_warn("GPIO line %d (%pOFn): no hogging state specified, bailing out\n",
|
||||
desc_to_gpio(desc), np);
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue