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 fce640b7f1c8..540f9ea7cada 100644
--- a/drivers/iio/dac/max5821.c
+++ b/drivers/iio/dac/max5821.c
@@ -116,7 +116,7 @@ static ssize_t max5821_write_dac_powerdown(struct iio_dev *indio_dev,
bool powerdown;
int ret;
- ret = strtobool(buf, &powerdown);
+ ret = kstrtobool(buf, &powerdown);
if (ret)
return ret;