Skip to content

Commit 8eb53bd

Browse files
committed
iio: frequency: 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 cefe9cc commit 8eb53bd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

drivers/iio/frequency/ad9508.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static ssize_t ad9508_store(struct device *dev,
215215
bool state;
216216
int ret;
217217

218-
ret = strtobool(buf, &state);
218+
ret = kstrtobool(buf, &state);
219219
if (ret < 0)
220220
return ret;
221221

drivers/iio/frequency/ad9528.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static ssize_t ad9528_store(struct device *dev,
414414
bool state;
415415
int ret;
416416

417-
ret = strtobool(buf, &state);
417+
ret = kstrtobool(buf, &state);
418418
if (ret < 0)
419419
return ret;
420420

drivers/iio/frequency/hmc7044.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static ssize_t hmc7044_store(struct device *dev,
533533
int ret;
534534
u32 val, write_val;
535535

536-
ret = strtobool(buf, &state);
536+
ret = kstrtobool(buf, &state);
537537
if (ret < 0)
538538
return ret;
539539

drivers/iio/frequency/m2k-dac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static ssize_t m2k_dac_write_dma_sync(struct device *dev,
321321
bool val;
322322
int ret;
323323

324-
ret = strtobool(buf, &val);
324+
ret = kstrtobool(buf, &val);
325325
if (ret < 0)
326326
return ret;
327327

@@ -353,7 +353,7 @@ static ssize_t m2k_dac_write_dma_sync_start(struct device *dev,
353353
bool val;
354354
int ret;
355355

356-
ret = strtobool(buf, &val);
356+
ret = kstrtobool(buf, &val);
357357
if (ret < 0)
358358
return ret;
359359

0 commit comments

Comments
 (0)