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-gpio.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-gpio.c')
-rw-r--r-- | drivers/i2c/busses/i2c-gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index 34cfc0ebdcb9..0ef8fcc6ac3a 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses/i2c-gpio.c @@ -98,8 +98,8 @@ static int of_i2c_gpio_get_pins(struct device_node *np, return -EPROBE_DEFER; if (!gpio_is_valid(*sda_pin) || !gpio_is_valid(*scl_pin)) { - pr_err("%s: invalid GPIO pins, sda=%d/scl=%d\n", - np->full_name, *sda_pin, *scl_pin); + pr_err("%pOF: invalid GPIO pins, sda=%d/scl=%d\n", + np, *sda_pin, *scl_pin); return -ENODEV; } |