summaryrefslogtreecommitdiff
path: root/drivers/iio/dac/max5821.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/dac/max5821.c')
-rw-r--r--drivers/iio/dac/max5821.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/max5821.c b/drivers/iio/dac/max5821.c
index d6bb24db49c4..bd6e75699a63 100644
--- a/drivers/iio/dac/max5821.c
+++ b/drivers/iio/dac/max5821.c
@@ -84,7 +84,7 @@ static ssize_t max5821_read_dac_powerdown(struct iio_dev *indio_dev,
{
struct max5821_data *st = iio_priv(indio_dev);
- return sprintf(buf, "%d\n", st->powerdown[chan->channel]);
+ return sysfs_emit(buf, "%d\n", st->powerdown[chan->channel]);
}
static int max5821_sync_powerdown_mode(struct max5821_data *data,