diff options
author | Rob Herring <robh@kernel.org> | 2017-07-18 17:43:08 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-07-22 17:00:43 -0400 |
commit | 3921db46a8c5bc256c5956a04ad49cbbeac28e7d (patch) | |
tree | e24726d316ce7b981bec78b02d5b30191be7e021 /drivers/iio/inkern.c | |
parent | 065a7c0b1fec9df9b22cf228b777fc3d2f4e6ba9 (diff) |
iio: 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>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: Carlo Caione <carlo@caione.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: linux-iio@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/inkern.c')
-rw-r--r-- | drivers/iio/inkern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index 487bf6b75172..6c69da942321 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c | |||
@@ -205,8 +205,8 @@ static struct iio_channel *of_iio_channel_get_by_name(struct device_node *np, | |||
205 | if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER) | 205 | if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER) |
206 | break; | 206 | break; |
207 | else if (name && index >= 0) { | 207 | else if (name && index >= 0) { |
208 | pr_err("ERROR: could not get IIO channel %s:%s(%i)\n", | 208 | pr_err("ERROR: could not get IIO channel %pOF:%s(%i)\n", |
209 | np->full_name, name ? name : "", index); | 209 | np, name ? name : "", index); |
210 | return NULL; | 210 | return NULL; |
211 | } | 211 | } |
212 | 212 | ||