diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 21:52:41 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-08-29 08:05:36 -0400 |
commit | 94f4e54cecaf3ec9181cca9367e1ad0d60188d1f (patch) | |
tree | 626cd60a2c9f56ef13872ae6f8bc34ed44291dfc | |
parent | 803ceb297a240e7356907b84a8b334400bbf4f4c (diff) |
pinctrl: 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: Dong Aisheng <aisheng.dong@nxp.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Stefan Agner <stefan@agner.ch>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Carlo Caione <carlo@caione.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: linux-gpio@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-amlogic@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
Cc: linux-omap@vger.kernel.org
Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Sean Wang <sean.wang@mediatek.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/berlin/berlin.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/freescale/pinctrl-imx.c | 7 | ||||
-rw-r--r-- | drivers/pinctrl/freescale/pinctrl-imx1-core.c | 12 | ||||
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/meson/pinctrl-meson.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-mvebu.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/nomadik/pinctrl-nomadik.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-at91.c | 8 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-lantiq.c | 8 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-rockchip.c | 8 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-rza1.c | 8 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-single.c | 32 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-st.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/sirf/pinctrl-atlas7.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/stm32/pinctrl-stm32.c | 4 | ||||
-rw-r--r-- | drivers/pinctrl/sunxi/pinctrl-sunxi.c | 8 | ||||
-rw-r--r-- | drivers/pinctrl/ti/pinctrl-ti-iodelay.c | 8 |
17 files changed, 66 insertions, 69 deletions
diff --git a/drivers/pinctrl/berlin/berlin.c b/drivers/pinctrl/berlin/berlin.c index b5903fffb3d0..b17a03cf87be 100644 --- a/drivers/pinctrl/berlin/berlin.c +++ b/drivers/pinctrl/berlin/berlin.c | |||
@@ -64,16 +64,14 @@ static int berlin_pinctrl_dt_node_to_map(struct pinctrl_dev *pctrl_dev, | |||
64 | ret = of_property_read_string(node, "function", &function_name); | 64 | ret = of_property_read_string(node, "function", &function_name); |
65 | if (ret) { | 65 | if (ret) { |
66 | dev_err(pctrl->dev, | 66 | dev_err(pctrl->dev, |
67 | "missing function property in node %s\n", | 67 | "missing function property in node %pOFn\n", node); |
68 | node->name); | ||
69 | return -EINVAL; | 68 | return -EINVAL; |
70 | } | 69 | } |
71 | 70 | ||
72 | ngroups = of_property_count_strings(node, "groups"); | 71 | ngroups = of_property_count_strings(node, "groups"); |
73 | if (ngroups < 0) { | 72 | if (ngroups < 0) { |
74 | dev_err(pctrl->dev, | 73 | dev_err(pctrl->dev, |
75 | "missing groups property in node %s\n", | 74 | "missing groups property in node %pOFn\n", node); |
76 | node->name); | ||
77 | return -EINVAL; | 75 | return -EINVAL; |
78 | } | 76 | } |
79 | 77 | ||
diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/pinctrl-imx.c index b04edc22dad7..4e8cf0e357c6 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx.c +++ b/drivers/pinctrl/freescale/pinctrl-imx.c | |||
@@ -69,8 +69,7 @@ static int imx_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
69 | */ | 69 | */ |
70 | grp = imx_pinctrl_find_group_by_name(pctldev, np->name); | 70 | grp = imx_pinctrl_find_group_by_name(pctldev, np->name); |
71 | if (!grp) { | 71 | if (!grp) { |
72 | dev_err(ipctl->dev, "unable to find group for node %s\n", | 72 | dev_err(ipctl->dev, "unable to find group for node %pOFn\n", np); |
73 | np->name); | ||
74 | return -EINVAL; | 73 | return -EINVAL; |
75 | } | 74 | } |
76 | 75 | ||
@@ -434,7 +433,7 @@ static int imx_pinctrl_parse_groups(struct device_node *np, | |||
434 | int i; | 433 | int i; |
435 | u32 config; | 434 | u32 config; |
436 | 435 | ||
437 | dev_dbg(ipctl->dev, "group(%d): %s\n", index, np->name); | 436 | dev_dbg(ipctl->dev, "group(%d): %pOFn\n", index, np); |
438 | 437 | ||
439 | if (info->flags & SHARE_MUX_CONF_REG) | 438 | if (info->flags & SHARE_MUX_CONF_REG) |
440 | pin_size = FSL_PIN_SHARE_SIZE; | 439 | pin_size = FSL_PIN_SHARE_SIZE; |
@@ -544,7 +543,7 @@ static int imx_pinctrl_parse_functions(struct device_node *np, | |||
544 | struct group_desc *grp; | 543 | struct group_desc *grp; |
545 | u32 i = 0; | 544 | u32 i = 0; |
546 | 545 | ||
547 | dev_dbg(pctl->dev, "parse function(%d): %s\n", index, np->name); | 546 | dev_dbg(pctl->dev, "parse function(%d): %pOFn\n", index, np); |
548 | 547 | ||
549 | func = pinmux_generic_get_function(pctl, index); | 548 | func = pinmux_generic_get_function(pctl, index); |
550 | if (!func) | 549 | if (!func) |
diff --git a/drivers/pinctrl/freescale/pinctrl-imx1-core.c b/drivers/pinctrl/freescale/pinctrl-imx1-core.c index deb7870b3d1a..7e29e3fecdb2 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx1-core.c +++ b/drivers/pinctrl/freescale/pinctrl-imx1-core.c | |||
@@ -233,8 +233,8 @@ static int imx1_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
233 | */ | 233 | */ |
234 | grp = imx1_pinctrl_find_group_by_name(info, np->name); | 234 | grp = imx1_pinctrl_find_group_by_name(info, np->name); |
235 | if (!grp) { | 235 | if (!grp) { |
236 | dev_err(info->dev, "unable to find group for node %s\n", | 236 | dev_err(info->dev, "unable to find group for node %pOFn\n", |
237 | np->name); | 237 | np); |
238 | return -EINVAL; | 238 | return -EINVAL; |
239 | } | 239 | } |
240 | 240 | ||
@@ -466,7 +466,7 @@ static int imx1_pinctrl_parse_groups(struct device_node *np, | |||
466 | const __be32 *list; | 466 | const __be32 *list; |
467 | int i; | 467 | int i; |
468 | 468 | ||
469 | dev_dbg(info->dev, "group(%d): %s\n", index, np->name); | 469 | dev_dbg(info->dev, "group(%d): %pOFn\n", index, np); |
470 | 470 | ||
471 | /* Initialise group */ | 471 | /* Initialise group */ |
472 | grp->name = np->name; | 472 | grp->name = np->name; |
@@ -477,8 +477,8 @@ static int imx1_pinctrl_parse_groups(struct device_node *np, | |||
477 | list = of_get_property(np, "fsl,pins", &size); | 477 | list = of_get_property(np, "fsl,pins", &size); |
478 | /* we do not check return since it's safe node passed down */ | 478 | /* we do not check return since it's safe node passed down */ |
479 | if (!size || size % 12) { | 479 | if (!size || size % 12) { |
480 | dev_notice(info->dev, "Not a valid fsl,pins property (%s)\n", | 480 | dev_notice(info->dev, "Not a valid fsl,pins property (%pOFn)\n", |
481 | np->name); | 481 | np); |
482 | return -EINVAL; | 482 | return -EINVAL; |
483 | } | 483 | } |
484 | 484 | ||
@@ -513,7 +513,7 @@ static int imx1_pinctrl_parse_functions(struct device_node *np, | |||
513 | static u32 grp_index; | 513 | static u32 grp_index; |
514 | u32 i = 0; | 514 | u32 i = 0; |
515 | 515 | ||
516 | dev_dbg(info->dev, "parse function(%d): %s\n", index, np->name); | 516 | dev_dbg(info->dev, "parse function(%d): %pOFn\n", index, np); |
517 | 517 | ||
518 | func = &info->functions[index]; | 518 | func = &info->functions[index]; |
519 | 519 | ||
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 16ff56f93501..071623873ca5 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c | |||
@@ -514,8 +514,8 @@ static int mtk_pctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev, | |||
514 | 514 | ||
515 | pins = of_find_property(node, "pinmux", NULL); | 515 | pins = of_find_property(node, "pinmux", NULL); |
516 | if (!pins) { | 516 | if (!pins) { |
517 | dev_err(pctl->dev, "missing pins property in node %s .\n", | 517 | dev_err(pctl->dev, "missing pins property in node %pOFn .\n", |
518 | node->name); | 518 | node); |
519 | return -EINVAL; | 519 | return -EINVAL; |
520 | } | 520 | } |
521 | 521 | ||
diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index 29a458da78db..9cb81aec4e3b 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c | |||
@@ -451,7 +451,7 @@ static struct regmap *meson_map_resource(struct meson_pinctrl *pc, | |||
451 | 451 | ||
452 | meson_regmap_config.max_register = resource_size(&res) - 4; | 452 | meson_regmap_config.max_register = resource_size(&res) - 4; |
453 | meson_regmap_config.name = devm_kasprintf(pc->dev, GFP_KERNEL, | 453 | meson_regmap_config.name = devm_kasprintf(pc->dev, GFP_KERNEL, |
454 | "%s-%s", node->name, | 454 | "%pOFn-%s", node, |
455 | name); | 455 | name); |
456 | if (!meson_regmap_config.name) | 456 | if (!meson_regmap_config.name) |
457 | return ERR_PTR(-ENOMEM); | 457 | return ERR_PTR(-ENOMEM); |
diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index d7ec7119701b..7ee5f7970585 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c | |||
@@ -413,14 +413,14 @@ static int mvebu_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
413 | ret = of_property_read_string(np, "marvell,function", &function); | 413 | ret = of_property_read_string(np, "marvell,function", &function); |
414 | if (ret) { | 414 | if (ret) { |
415 | dev_err(pctl->dev, | 415 | dev_err(pctl->dev, |
416 | "missing marvell,function in node %s\n", np->name); | 416 | "missing marvell,function in node %pOFn\n", np); |
417 | return 0; | 417 | return 0; |
418 | } | 418 | } |
419 | 419 | ||
420 | nmaps = of_property_count_strings(np, "marvell,pins"); | 420 | nmaps = of_property_count_strings(np, "marvell,pins"); |
421 | if (nmaps < 0) { | 421 | if (nmaps < 0) { |
422 | dev_err(pctl->dev, | 422 | dev_err(pctl->dev, |
423 | "missing marvell,pins in node %s\n", np->name); | 423 | "missing marvell,pins in node %pOFn\n", np); |
424 | return 0; | 424 | return 0; |
425 | } | 425 | } |
426 | 426 | ||
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index f0e7a8c114b2..866db2706b8b 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c | |||
@@ -1051,7 +1051,7 @@ static struct nmk_gpio_chip *nmk_gpio_populate_chip(struct device_node *np, | |||
1051 | 1051 | ||
1052 | gpio_pdev = of_find_device_by_node(np); | 1052 | gpio_pdev = of_find_device_by_node(np); |
1053 | if (!gpio_pdev) { | 1053 | if (!gpio_pdev) { |
1054 | pr_err("populate \"%s\": device not found\n", np->name); | 1054 | pr_err("populate \"%pOFn\": device not found\n", np); |
1055 | return ERR_PTR(-ENODEV); | 1055 | return ERR_PTR(-ENODEV); |
1056 | } | 1056 | } |
1057 | if (of_property_read_u32(np, "gpio-bank", &id)) { | 1057 | if (of_property_read_u32(np, "gpio-bank", &id)) { |
@@ -1904,8 +1904,8 @@ static int nmk_pinctrl_probe(struct platform_device *pdev) | |||
1904 | gpio_np = of_parse_phandle(np, "nomadik-gpio-chips", i); | 1904 | gpio_np = of_parse_phandle(np, "nomadik-gpio-chips", i); |
1905 | if (gpio_np) { | 1905 | if (gpio_np) { |
1906 | dev_info(&pdev->dev, | 1906 | dev_info(&pdev->dev, |
1907 | "populate NMK GPIO %d \"%s\"\n", | 1907 | "populate NMK GPIO %d \"%pOFn\"\n", |
1908 | i, gpio_np->name); | 1908 | i, gpio_np); |
1909 | nmk_chip = nmk_gpio_populate_chip(gpio_np, pdev); | 1909 | nmk_chip = nmk_gpio_populate_chip(gpio_np, pdev); |
1910 | if (IS_ERR(nmk_chip)) | 1910 | if (IS_ERR(nmk_chip)) |
1911 | dev_err(&pdev->dev, | 1911 | dev_err(&pdev->dev, |
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 50f0ec42c637..cfd8239f2727 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c | |||
@@ -263,8 +263,8 @@ static int at91_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
263 | */ | 263 | */ |
264 | grp = at91_pinctrl_find_group_by_name(info, np->name); | 264 | grp = at91_pinctrl_find_group_by_name(info, np->name); |
265 | if (!grp) { | 265 | if (!grp) { |
266 | dev_err(info->dev, "unable to find group for node %s\n", | 266 | dev_err(info->dev, "unable to find group for node %pOFn\n", |
267 | np->name); | 267 | np); |
268 | return -EINVAL; | 268 | return -EINVAL; |
269 | } | 269 | } |
270 | 270 | ||
@@ -1071,7 +1071,7 @@ static int at91_pinctrl_parse_groups(struct device_node *np, | |||
1071 | const __be32 *list; | 1071 | const __be32 *list; |
1072 | int i, j; | 1072 | int i, j; |
1073 | 1073 | ||
1074 | dev_dbg(info->dev, "group(%d): %s\n", index, np->name); | 1074 | dev_dbg(info->dev, "group(%d): %pOFn\n", index, np); |
1075 | 1075 | ||
1076 | /* Initialise group */ | 1076 | /* Initialise group */ |
1077 | grp->name = np->name; | 1077 | grp->name = np->name; |
@@ -1122,7 +1122,7 @@ static int at91_pinctrl_parse_functions(struct device_node *np, | |||
1122 | static u32 grp_index; | 1122 | static u32 grp_index; |
1123 | u32 i = 0; | 1123 | u32 i = 0; |
1124 | 1124 | ||
1125 | dev_dbg(info->dev, "parse function(%d): %s\n", index, np->name); | 1125 | dev_dbg(info->dev, "parse function(%d): %pOFn\n", index, np); |
1126 | 1126 | ||
1127 | func = &info->functions[index]; | 1127 | func = &info->functions[index]; |
1128 | 1128 | ||
diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c index 81632af3a86a..22e80613e269 100644 --- a/drivers/pinctrl/pinctrl-lantiq.c +++ b/drivers/pinctrl/pinctrl-lantiq.c | |||
@@ -80,14 +80,14 @@ static void ltq_pinctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev, | |||
80 | int ret, i; | 80 | int ret, i; |
81 | 81 | ||
82 | if (!pins && !groups) { | 82 | if (!pins && !groups) { |
83 | dev_err(pctldev->dev, "%s defines neither pins nor groups\n", | 83 | dev_err(pctldev->dev, "%pOFn defines neither pins nor groups\n", |
84 | np->name); | 84 | np); |
85 | return; | 85 | return; |
86 | } | 86 | } |
87 | 87 | ||
88 | if (pins && groups) { | 88 | if (pins && groups) { |
89 | dev_err(pctldev->dev, "%s defines both pins and groups\n", | 89 | dev_err(pctldev->dev, "%pOFn defines both pins and groups\n", |
90 | np->name); | 90 | np); |
91 | return; | 91 | return; |
92 | } | 92 | } |
93 | 93 | ||
diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index f4a61429e06e..1fe72af3717b 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c | |||
@@ -501,8 +501,8 @@ static int rockchip_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
501 | */ | 501 | */ |
502 | grp = pinctrl_name_to_group(info, np->name); | 502 | grp = pinctrl_name_to_group(info, np->name); |
503 | if (!grp) { | 503 | if (!grp) { |
504 | dev_err(info->dev, "unable to find group for node %s\n", | 504 | dev_err(info->dev, "unable to find group for node %pOFn\n", |
505 | np->name); | 505 | np); |
506 | return -EINVAL; | 506 | return -EINVAL; |
507 | } | 507 | } |
508 | 508 | ||
@@ -2454,7 +2454,7 @@ static int rockchip_pinctrl_parse_groups(struct device_node *np, | |||
2454 | int i, j; | 2454 | int i, j; |
2455 | int ret; | 2455 | int ret; |
2456 | 2456 | ||
2457 | dev_dbg(info->dev, "group(%d): %s\n", index, np->name); | 2457 | dev_dbg(info->dev, "group(%d): %pOFn\n", index, np); |
2458 | 2458 | ||
2459 | /* Initialise group */ | 2459 | /* Initialise group */ |
2460 | grp->name = np->name; | 2460 | grp->name = np->name; |
@@ -2519,7 +2519,7 @@ static int rockchip_pinctrl_parse_functions(struct device_node *np, | |||
2519 | static u32 grp_index; | 2519 | static u32 grp_index; |
2520 | u32 i = 0; | 2520 | u32 i = 0; |
2521 | 2521 | ||
2522 | dev_dbg(info->dev, "parse function(%d): %s\n", index, np->name); | 2522 | dev_dbg(info->dev, "parse function(%d): %pOFn\n", index, np); |
2523 | 2523 | ||
2524 | func = &info->functions[index]; | 2524 | func = &info->functions[index]; |
2525 | 2525 | ||
diff --git a/drivers/pinctrl/pinctrl-rza1.c b/drivers/pinctrl/pinctrl-rza1.c index f76edf664539..042ede3b8ada 100644 --- a/drivers/pinctrl/pinctrl-rza1.c +++ b/drivers/pinctrl/pinctrl-rza1.c | |||
@@ -930,8 +930,8 @@ static int rza1_parse_pinmux_node(struct rza1_pinctrl *rza1_pctl, | |||
930 | &npin_configs); | 930 | &npin_configs); |
931 | if (ret) { | 931 | if (ret) { |
932 | dev_err(rza1_pctl->dev, | 932 | dev_err(rza1_pctl->dev, |
933 | "Unable to parse pin configuration options for %s\n", | 933 | "Unable to parse pin configuration options for %pOFn\n", |
934 | np->name); | 934 | np); |
935 | return ret; | 935 | return ret; |
936 | } | 936 | } |
937 | 937 | ||
@@ -1226,8 +1226,8 @@ static int rza1_parse_gpiochip(struct rza1_pinctrl *rza1_pctl, | |||
1226 | 1226 | ||
1227 | *chip = rza1_gpiochip_template; | 1227 | *chip = rza1_gpiochip_template; |
1228 | chip->base = -1; | 1228 | chip->base = -1; |
1229 | chip->label = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL, "%s", | 1229 | chip->label = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL, "%pOFn", |
1230 | np->name); | 1230 | np); |
1231 | chip->ngpio = of_args.args[2]; | 1231 | chip->ngpio = of_args.args[2]; |
1232 | chip->of_node = np; | 1232 | chip->of_node = np; |
1233 | chip->parent = rza1_pctl->dev; | 1233 | chip->parent = rza1_pctl->dev; |
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 7ec72ff2419a..1e0614daee9b 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c | |||
@@ -1022,14 +1022,14 @@ static int pcs_parse_one_pinctrl_entry(struct pcs_device *pcs, | |||
1022 | vals[found].reg = pcs->base + offset; | 1022 | vals[found].reg = pcs->base + offset; |
1023 | vals[found].val = pinctrl_spec.args[1]; | 1023 | vals[found].val = pinctrl_spec.args[1]; |
1024 | 1024 | ||
1025 | dev_dbg(pcs->dev, "%s index: 0x%x value: 0x%x\n", | 1025 | dev_dbg(pcs->dev, "%pOFn index: 0x%x value: 0x%x\n", |
1026 | pinctrl_spec.np->name, offset, pinctrl_spec.args[1]); | 1026 | pinctrl_spec.np, offset, pinctrl_spec.args[1]); |
1027 | 1027 | ||
1028 | pin = pcs_get_pin_by_offset(pcs, offset); | 1028 | pin = pcs_get_pin_by_offset(pcs, offset); |
1029 | if (pin < 0) { | 1029 | if (pin < 0) { |
1030 | dev_err(pcs->dev, | 1030 | dev_err(pcs->dev, |
1031 | "could not add functions for %s %ux\n", | 1031 | "could not add functions for %pOFn %ux\n", |
1032 | np->name, offset); | 1032 | np, offset); |
1033 | break; | 1033 | break; |
1034 | } | 1034 | } |
1035 | pins[found++] = pin; | 1035 | pins[found++] = pin; |
@@ -1135,8 +1135,8 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, | |||
1135 | val = pinctrl_spec.args[1]; | 1135 | val = pinctrl_spec.args[1]; |
1136 | mask = pinctrl_spec.args[2]; | 1136 | mask = pinctrl_spec.args[2]; |
1137 | 1137 | ||
1138 | dev_dbg(pcs->dev, "%s index: 0x%x value: 0x%x mask: 0x%x\n", | 1138 | dev_dbg(pcs->dev, "%pOFn index: 0x%x value: 0x%x mask: 0x%x\n", |
1139 | pinctrl_spec.np->name, offset, val, mask); | 1139 | pinctrl_spec.np, offset, val, mask); |
1140 | 1140 | ||
1141 | /* Parse pins in each row from LSB */ | 1141 | /* Parse pins in each row from LSB */ |
1142 | while (mask) { | 1142 | while (mask) { |
@@ -1148,8 +1148,8 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, | |||
1148 | 1148 | ||
1149 | if ((mask & mask_pos) == 0) { | 1149 | if ((mask & mask_pos) == 0) { |
1150 | dev_err(pcs->dev, | 1150 | dev_err(pcs->dev, |
1151 | "Invalid mask for %s at 0x%x\n", | 1151 | "Invalid mask for %pOFn at 0x%x\n", |
1152 | np->name, offset); | 1152 | np, offset); |
1153 | break; | 1153 | break; |
1154 | } | 1154 | } |
1155 | 1155 | ||
@@ -1157,8 +1157,8 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, | |||
1157 | 1157 | ||
1158 | if (submask != mask_pos) { | 1158 | if (submask != mask_pos) { |
1159 | dev_warn(pcs->dev, | 1159 | dev_warn(pcs->dev, |
1160 | "Invalid submask 0x%x for %s at 0x%x\n", | 1160 | "Invalid submask 0x%x for %pOFn at 0x%x\n", |
1161 | submask, np->name, offset); | 1161 | submask, np, offset); |
1162 | continue; | 1162 | continue; |
1163 | } | 1163 | } |
1164 | 1164 | ||
@@ -1169,8 +1169,8 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, | |||
1169 | pin = pcs_get_pin_by_offset(pcs, offset); | 1169 | pin = pcs_get_pin_by_offset(pcs, offset); |
1170 | if (pin < 0) { | 1170 | if (pin < 0) { |
1171 | dev_err(pcs->dev, | 1171 | dev_err(pcs->dev, |
1172 | "could not add functions for %s %ux\n", | 1172 | "could not add functions for %pOFn %ux\n", |
1173 | np->name, offset); | 1173 | np, offset); |
1174 | break; | 1174 | break; |
1175 | } | 1175 | } |
1176 | pins[found++] = pin + pin_num_from_lsb; | 1176 | pins[found++] = pin + pin_num_from_lsb; |
@@ -1254,16 +1254,16 @@ static int pcs_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
1254 | ret = pcs_parse_bits_in_pinctrl_entry(pcs, np_config, map, | 1254 | ret = pcs_parse_bits_in_pinctrl_entry(pcs, np_config, map, |
1255 | num_maps, pgnames); | 1255 | num_maps, pgnames); |
1256 | if (ret < 0) { | 1256 | if (ret < 0) { |
1257 | dev_err(pcs->dev, "no pins entries for %s\n", | 1257 | dev_err(pcs->dev, "no pins entries for %pOFn\n", |
1258 | np_config->name); | 1258 | np_config); |
1259 | goto free_pgnames; | 1259 | goto free_pgnames; |
1260 | } | 1260 | } |
1261 | } else { | 1261 | } else { |
1262 | ret = pcs_parse_one_pinctrl_entry(pcs, np_config, map, | 1262 | ret = pcs_parse_one_pinctrl_entry(pcs, np_config, map, |
1263 | num_maps, pgnames); | 1263 | num_maps, pgnames); |
1264 | if (ret < 0) { | 1264 | if (ret < 0) { |
1265 | dev_err(pcs->dev, "no pins entries for %s\n", | 1265 | dev_err(pcs->dev, "no pins entries for %pOFn\n", |
1266 | np_config->name); | 1266 | np_config); |
1267 | goto free_pgnames; | 1267 | goto free_pgnames; |
1268 | } | 1268 | } |
1269 | } | 1269 | } |
diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 0966bb0bf71f..e66af93f2cbf 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c | |||
@@ -817,8 +817,8 @@ static int st_pctl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
817 | 817 | ||
818 | grp = st_pctl_find_group_by_name(info, np->name); | 818 | grp = st_pctl_find_group_by_name(info, np->name); |
819 | if (!grp) { | 819 | if (!grp) { |
820 | dev_err(info->dev, "unable to find group for node %s\n", | 820 | dev_err(info->dev, "unable to find group for node %pOFn\n", |
821 | np->name); | 821 | np); |
822 | return -EINVAL; | 822 | return -EINVAL; |
823 | } | 823 | } |
824 | 824 | ||
@@ -1184,7 +1184,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np, | |||
1184 | if (pp->length / sizeof(__be32) >= OF_GPIO_ARGS_MIN) { | 1184 | if (pp->length / sizeof(__be32) >= OF_GPIO_ARGS_MIN) { |
1185 | npins++; | 1185 | npins++; |
1186 | } else { | 1186 | } else { |
1187 | pr_warn("Invalid st,pins in %s node\n", np->name); | 1187 | pr_warn("Invalid st,pins in %pOFn node\n", np); |
1188 | return -EINVAL; | 1188 | return -EINVAL; |
1189 | } | 1189 | } |
1190 | } | 1190 | } |
diff --git a/drivers/pinctrl/sirf/pinctrl-atlas7.c b/drivers/pinctrl/sirf/pinctrl-atlas7.c index 3abb028f6158..1d16df128b1a 100644 --- a/drivers/pinctrl/sirf/pinctrl-atlas7.c +++ b/drivers/pinctrl/sirf/pinctrl-atlas7.c | |||
@@ -6058,8 +6058,8 @@ static int atlas7_gpio_probe(struct platform_device *pdev) | |||
6058 | ret = gpiochip_add_data(chip, a7gc); | 6058 | ret = gpiochip_add_data(chip, a7gc); |
6059 | if (ret) { | 6059 | if (ret) { |
6060 | dev_err(&pdev->dev, | 6060 | dev_err(&pdev->dev, |
6061 | "%s: error in probe function with status %d\n", | 6061 | "%pOF: error in probe function with status %d\n", |
6062 | np->name, ret); | 6062 | np, ret); |
6063 | goto failed; | 6063 | goto failed; |
6064 | } | 6064 | } |
6065 | 6065 | ||
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index a9bec6e6fdd1..0fbfcc9ea07c 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c | |||
@@ -416,8 +416,8 @@ static int stm32_pctrl_dt_subnode_to_map(struct pinctrl_dev *pctldev, | |||
416 | 416 | ||
417 | pins = of_find_property(node, "pinmux", NULL); | 417 | pins = of_find_property(node, "pinmux", NULL); |
418 | if (!pins) { | 418 | if (!pins) { |
419 | dev_err(pctl->dev, "missing pins property in node %s .\n", | 419 | dev_err(pctl->dev, "missing pins property in node %pOFn .\n", |
420 | node->name); | 420 | node); |
421 | return -EINVAL; | 421 | return -EINVAL; |
422 | } | 422 | } |
423 | 423 | ||
diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index 4d9bf9b3e9f3..3ccbe221e024 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c | |||
@@ -332,15 +332,15 @@ static int sunxi_pctrl_dt_node_to_map(struct pinctrl_dev *pctldev, | |||
332 | 332 | ||
333 | function = sunxi_pctrl_parse_function_prop(node); | 333 | function = sunxi_pctrl_parse_function_prop(node); |
334 | if (!function) { | 334 | if (!function) { |
335 | dev_err(pctl->dev, "missing function property in node %s\n", | 335 | dev_err(pctl->dev, "missing function property in node %pOFn\n", |
336 | node->name); | 336 | node); |
337 | return -EINVAL; | 337 | return -EINVAL; |
338 | } | 338 | } |
339 | 339 | ||
340 | pin_prop = sunxi_pctrl_find_pins_prop(node, &npins); | 340 | pin_prop = sunxi_pctrl_find_pins_prop(node, &npins); |
341 | if (!pin_prop) { | 341 | if (!pin_prop) { |
342 | dev_err(pctl->dev, "missing pins property in node %s\n", | 342 | dev_err(pctl->dev, "missing pins property in node %pOFn\n", |
343 | node->name); | 343 | node); |
344 | return -EINVAL; | 344 | return -EINVAL; |
345 | } | 345 | } |
346 | 346 | ||
diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c index 8782c348ebe9..a4bc506a01a3 100644 --- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c +++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c | |||
@@ -452,8 +452,8 @@ static int ti_iodelay_node_iterator(struct pinctrl_dev *pctldev, | |||
452 | 452 | ||
453 | pin = ti_iodelay_offset_to_pin(iod, cfg[pin_index].offset); | 453 | pin = ti_iodelay_offset_to_pin(iod, cfg[pin_index].offset); |
454 | if (pin < 0) { | 454 | if (pin < 0) { |
455 | dev_err(iod->dev, "could not add functions for %s %ux\n", | 455 | dev_err(iod->dev, "could not add functions for %pOFn %ux\n", |
456 | np->name, cfg[pin_index].offset); | 456 | np, cfg[pin_index].offset); |
457 | return -ENODEV; | 457 | return -ENODEV; |
458 | } | 458 | } |
459 | pins[pin_index] = pin; | 459 | pins[pin_index] = pin; |
@@ -461,8 +461,8 @@ static int ti_iodelay_node_iterator(struct pinctrl_dev *pctldev, | |||
461 | pd = &iod->pa[pin]; | 461 | pd = &iod->pa[pin]; |
462 | pd->drv_data = &cfg[pin_index]; | 462 | pd->drv_data = &cfg[pin_index]; |
463 | 463 | ||
464 | dev_dbg(iod->dev, "%s offset=%x a_delay = %d g_delay = %d\n", | 464 | dev_dbg(iod->dev, "%pOFn offset=%x a_delay = %d g_delay = %d\n", |
465 | np->name, cfg[pin_index].offset, cfg[pin_index].a_delay, | 465 | np, cfg[pin_index].offset, cfg[pin_index].a_delay, |
466 | cfg[pin_index].g_delay); | 466 | cfg[pin_index].g_delay); |
467 | 467 | ||
468 | return 0; | 468 | return 0; |