summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/dac/ds4424.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/iio/dac/ds4424.c b/drivers/iio/dac/ds4424.c
index c15eb7b5eb96..9d33a810336f 100644
--- a/drivers/iio/dac/ds4424.c
+++ b/drivers/iio/dac/ds4424.c
@@ -99,8 +99,9 @@ static int ds4424_read_raw(struct iio_dev *indio_dev,
case IIO_CHAN_INFO_RAW:
ret = ds4424_get_value(indio_dev, &regval, chan->channel);
if (ret < 0) {
- pr_err("%s : ds4424_get_value returned %d\n",
- __func__, ret);
+ dev_err_ratelimited(indio_dev->dev.parent,
+ "Failed to read channel %d: %pe\n",
+ chan->channel, ERR_PTR(ret));
return ret;
}