diff options
author | Rob Herring <robh@kernel.org> | 2017-07-18 23:43:06 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-07-31 17:19:35 +0200 |
commit | 453a237ccffad899ce15fb61e871e4784004be17 (patch) | |
tree | abcf5e1f8ce69a6be8b20fca864e9fabc51d992a /drivers/i2c/busses/i2c-sun6i-p2wi.c | |
parent | i2c: use dev_get_drvdata() to get private data in suspend/resume hooks (diff) | |
download | linux-453a237ccffad899ce15fb61e871e4784004be17.tar.xz linux-453a237ccffad899ce15fb61e871e4784004be17.zip |
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.c | 4 |
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; } |