diff options
author | Rob Herring <robh@kernel.org> | 2018-08-28 03:52:23 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-09-02 19:54:31 +0200 |
commit | 1fc378fa9dab9d3036562ecd58b26ecae2dbd85d (patch) | |
tree | 78707ebab9b8d70640bdac5b4aedb61fbae43fe8 /drivers/iio/adc/qcom-pm8xxx-xoadc.c | |
parent | iio: adc: qcom-spmi-adc5: Verify channel numbers from DT (diff) | |
download | linux-1fc378fa9dab9d3036562ecd58b26ecae2dbd85d.tar.xz linux-1fc378fa9dab9d3036562ecd58b26ecae2dbd85d.zip |
iio: 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.
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/qcom-pm8xxx-xoadc.c')
-rw-r--r-- | drivers/iio/adc/qcom-pm8xxx-xoadc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/qcom-pm8xxx-xoadc.c b/drivers/iio/adc/qcom-pm8xxx-xoadc.c index b093ecddf1a8..c30c002f1fef 100644 --- a/drivers/iio/adc/qcom-pm8xxx-xoadc.c +++ b/drivers/iio/adc/qcom-pm8xxx-xoadc.c @@ -708,8 +708,8 @@ static int pm8xxx_of_xlate(struct iio_dev *indio_dev, * mux. */ if (iiospec->args_count != 2) { - dev_err(&indio_dev->dev, "wrong number of arguments for %s need 2 got %d\n", - iiospec->np->name, + dev_err(&indio_dev->dev, "wrong number of arguments for %pOFn need 2 got %d\n", + iiospec->np, iiospec->args_count); return -EINVAL; } |