[PATCH] comedi_fops: Replace deprecated strict_strtoul with kstrtoul

Florian Schmaus fschmaus at gmail.com
Tue Nov 29 14:19:11 UTC 2011


As reported by checkpatch.pl strict_strtoul should be replaced with kstrtoul

Signed-off-by: Florian Schmaus <fschmaus at gmail.com>
---
 drivers/staging/comedi/comedi_fops.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 21d8c1c..a88a1e8 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -2434,7 +2434,7 @@ static ssize_t store_max_read_buffer_kb(struct device *dev,
 	struct comedi_subdevice *const read_subdevice =
 	    comedi_get_read_subdevice(info);
 
-	if (strict_strtoul(buf, 10, &new_max_size_kb))
+	if (kstrtoul(buf, 10, &new_max_size_kb))
 		return -EINVAL;
 	if (new_max_size_kb != (uint32_t) new_max_size_kb)
 		return -EINVAL;
@@ -2496,7 +2496,7 @@ static ssize_t store_read_buffer_kb(struct device *dev,
 	struct comedi_subdevice *const read_subdevice =
 	    comedi_get_read_subdevice(info);
 
-	if (strict_strtoul(buf, 10, &new_size_kb))
+	if (kstrtoul(buf, 10, &new_size_kb))
 		return -EINVAL;
 	if (new_size_kb != (uint32_t) new_size_kb)
 		return -EINVAL;
@@ -2561,7 +2561,7 @@ static ssize_t store_max_write_buffer_kb(struct device *dev,
 	struct comedi_subdevice *const write_subdevice =
 	    comedi_get_write_subdevice(info);
 
-	if (strict_strtoul(buf, 10, &new_max_size_kb))
+	if (kstrtoul(buf, 10, &new_max_size_kb))
 		return -EINVAL;
 	if (new_max_size_kb != (uint32_t) new_max_size_kb)
 		return -EINVAL;
@@ -2623,7 +2623,7 @@ static ssize_t store_write_buffer_kb(struct device *dev,
 	struct comedi_subdevice *const write_subdevice =
 	    comedi_get_write_subdevice(info);
 
-	if (strict_strtoul(buf, 10, &new_size_kb))
+	if (kstrtoul(buf, 10, &new_size_kb))
 		return -EINVAL;
 	if (new_size_kb != (uint32_t) new_size_kb)
 		return -EINVAL;
-- 
1.7.5.4




More information about the devel mailing list