summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ad5791.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2022-04-09 12:58:12 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-04-28 20:22:54 +0200
commit74f582ec127e3b10aec71e8d15f1c14b0f0481ec (patch)
tree7257979b09586c1be3e0d3d3b7f4c9e5b9a20d33 /drivers/iio/dac/ad5791.c
parentiio: core: Clarify the modes (diff)
downloadlinux-74f582ec127e3b10aec71e8d15f1c14b0f0481ec.tar.xz
linux-74f582ec127e3b10aec71e8d15f1c14b0f0481ec.zip
iio: Replace strtobool() with kstrtobool()
strtobool() is deprecated and just a wrapper around kstrtobool().Replace it with kstrtobool() so the deprecated function can be removed eventually. Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220409105812.2113895-1-lars@metafoo.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ad5791.c')
-rw-r--r--drivers/iio/dac/ad5791.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5791.c b/drivers/iio/dac/ad5791.c
index 2b14914b4050..339564fe47d1 100644
--- a/drivers/iio/dac/ad5791.c
+++ b/drivers/iio/dac/ad5791.c
@@ -188,7 +188,7 @@ static ssize_t ad5791_write_dac_powerdown(struct iio_dev *indio_dev,
int ret;
struct ad5791_state *st = iio_priv(indio_dev);
- ret = strtobool(buf, &pwr_down);
+ ret = kstrtobool(buf, &pwr_down);
if (ret)
return ret;