summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-sun6i-p2wi.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-07-19 00:43:06 +0300
committerWolfram Sang <wsa@the-dreams.de>2017-07-31 18:19:35 +0300
commit453a237ccffad899ce15fb61e871e4784004be17 (patch)
treeabcf5e1f8ce69a6be8b20fca864e9fabc51d992a /drivers/i2c/busses/i2c-sun6i-p2wi.c
parent9242e72aaea05c0fce2003a8efa48f403d87a5bf (diff)
downloadlinux-453a237ccffad899ce15fb61e871e4784004be17.tar.xz
i2c: Convert to using %pOF instead of full_name
Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-sun6i-p2wi.c')
-rw-r--r--drivers/i2c/busses/i2c-sun6i-p2wi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-sun6i-p2wi.c b/drivers/i2c/busses/i2c-sun6i-p2wi.c
index 7668e2e9b8fd..8a24464dc337 100644
--- a/drivers/i2c/busses/i2c-sun6i-p2wi.c
+++ b/drivers/i2c/busses/i2c-sun6i-p2wi.c
@@ -223,8 +223,8 @@ static int p2wi_probe(struct platform_device *pdev)
if (childnp) {
ret = of_property_read_u32(childnp, "reg", &slave_addr);
if (ret) {
- dev_err(dev, "invalid slave address on node %s\n",
- childnp->full_name);
+ dev_err(dev, "invalid slave address on node %pOF\n",
+ childnp);
return -EINVAL;
}