Skip to content

Commit 58a097a

Browse files
committed
iio: logic: move strtobool() to kstrtobool()
strtobool() will be removed in 6.12. Hence let's do now the transition. Signed-off-by: Nuno Sá <nuno.sa@analog.com>
1 parent c4fc3b5 commit 58a097a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/iio/logic/m2k-fabric.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static ssize_t m2k_fabric_user_supply_write(struct iio_dev *indio_dev,
268268
bool state;
269269
int ret;
270270

271-
ret = strtobool(buf, &state);
271+
ret = kstrtobool(buf, &state);
272272
if (ret)
273273
return ret;
274274

@@ -313,7 +313,7 @@ static ssize_t m2k_fabric_powerdown_write(struct iio_dev *indio_dev,
313313
bool state;
314314
int ret;
315315

316-
ret = strtobool(buf, &state);
316+
ret = kstrtobool(buf, &state);
317317
if (ret)
318318
return ret;
319319

drivers/iio/logic/m2k-logic-analyzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ static ssize_t m2k_la_write_powerdown(struct iio_dev *indio_dev,
763763
bool powerdown;
764764
int ret;
765765

766-
ret = strtobool(buf, &powerdown);
766+
ret = kstrtobool(buf, &powerdown);
767767
if (ret)
768768
return ret;
769769

0 commit comments

Comments
 (0)