diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-19 03:12:50 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-07-20 18:20:34 -0400 |
commit | a3d88c92a1d7ebbe1e956fd9f0f37bc383f2571b (patch) | |
tree | a1f64e44299ef81f70cc2cc7cae5de35b8ea77f7 | |
parent | f8b1bd71d0c5c9fdcd4458c1688208eaf06a26fb (diff) |
gpiolib: replace strict_strtol() with kstrtol()
The usage of strict_strtol() is not preferred, because
strict_strtol() is obsolete. Thus, kstrtol() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpiolib.c | 8 |
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 | ||