summaryrefslogtreecommitdiff
path: root/drivers/iio/dac/stm32-dac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/dac/stm32-dac.c')
-rw-r--r--drivers/iio/dac/stm32-dac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/stm32-dac.c b/drivers/iio/dac/stm32-dac.c
index 12dec68c16f7..a5b0a52bf86e 100644
--- a/drivers/iio/dac/stm32-dac.c
+++ b/drivers/iio/dac/stm32-dac.c
@@ -210,7 +210,7 @@ static ssize_t stm32_dac_read_powerdown(struct iio_dev *indio_dev,
if (ret < 0)
return ret;
- return sprintf(buf, "%d\n", ret ? 0 : 1);
+ return sysfs_emit(buf, "%d\n", ret ? 0 : 1);
}
static ssize_t stm32_dac_write_powerdown(struct iio_dev *indio_dev,