diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2022-04-09 12:58:12 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-04-28 19:22:54 +0100 |
commit | 74f582ec127e3b10aec71e8d15f1c14b0f0481ec (patch) | |
tree | 7257979b09586c1be3e0d3d3b7f4c9e5b9a20d33 /drivers/staging/iio | |
parent | ac3e62f51b3fbda78a44fff62ece8f11d8f08a25 (diff) | |
download | linux-stable-74f582ec127e3b10aec71e8d15f1c14b0f0481ec.tar.gz linux-stable-74f582ec127e3b10aec71e8d15f1c14b0f0481ec.tar.bz2 linux-stable-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/staging/iio')
-rw-r--r-- | drivers/staging/iio/cdc/ad7746.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 71c709771676..52b8957c19c9 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -290,7 +290,7 @@ static inline ssize_t ad7746_start_calib(struct device *dev, int ret, timeout = 10; bool doit; - ret = strtobool(buf, &doit); + ret = kstrtobool(buf, &doit); if (ret < 0) return ret; |