aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpiolib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index ff0fd655729f..d6413b2e0844 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -349,7 +349,7 @@ static ssize_t gpio_value_store(struct device *dev,
349 else { 349 else {
350 long value; 350 long value;
351 351
352 status = strict_strtol(buf, 0, &value); 352 status = kstrtol(buf, 0, &value);
353 if (status == 0) { 353 if (status == 0) {
354 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) 354 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags))
355 value = !value; 355 value = !value;
@@ -570,7 +570,7 @@ static ssize_t gpio_active_low_store(struct device *dev,
570 } else { 570 } else {
571 long value; 571 long value;
572 572
573 status = strict_strtol(buf, 0, &value); 573 status = kstrtol(buf, 0, &value);
574 if (status == 0) 574 if (status == 0)
575 status = sysfs_set_active_low(desc, dev, value != 0); 575 status = sysfs_set_active_low(desc, dev, value != 0);
576 } 576 }
@@ -652,7 +652,7 @@ static ssize_t export_store(struct class *class,
652 struct gpio_desc *desc; 652 struct gpio_desc *desc;
653 int status; 653 int status;
654 654
655 status = strict_strtol(buf, 0, &gpio); 655 status = kstrtol(buf, 0, &gpio);
656 if (status < 0) 656 if (status < 0)
657 goto done; 657 goto done;
658 658
@@ -694,7 +694,7 @@ static ssize_t unexport_store(struct class *class,
694 struct gpio_desc *desc; 694 struct gpio_desc *desc;
695 int status; 695 int status;
696 696
697 status = strict_strtol(buf, 0, &gpio); 697 status = kstrtol(buf, 0, &gpio);
698 if (status < 0) 698 if (status < 0)
699 goto done; 699 goto done;
700 700