summary refs log tree commit diff
path: root/drivers/i2c/muxes
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-09-28 17:49:47 -0500
committerWolfram Sang <wsa@the-dreams.de>2018-10-05 14:10:40 +0200
commit49d54abee9d1507e117a4218dc5baa3ebc5b93f1 (patch)
tree1492d76b77a4f9d341bbe542773aeb9965e9721f /drivers/i2c/muxes
parente1eba2ea54a2de0e4c58d87270d25706bb77b844 (diff)
downloadlinux-49d54abee9d1507e117a4218dc5baa3ebc5b93f1.tar.gz
i2c: 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.

Reviewed-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/muxes')
-rw-r--r--drivers/i2c/muxes/i2c-mux-gpmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-gpmux.c b/drivers/i2c/muxes/i2c-mux-gpmux.c
index 92cf5f48afe6..f60b670deff7 100644
--- a/drivers/i2c/muxes/i2c-mux-gpmux.c
+++ b/drivers/i2c/muxes/i2c-mux-gpmux.c
@@ -120,8 +120,8 @@ static int i2c_mux_probe(struct platform_device *pdev)
 
 		ret = of_property_read_u32(child, "reg", &chan);
 		if (ret < 0) {
-			dev_err(dev, "no reg property for node '%s'\n",
-				child->name);
+			dev_err(dev, "no reg property for node '%pOFn'\n",
+				child);
 			goto err_children;
 		}