Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Linus Walleij
a3d88c92 f8b1bd71

+4 -4
+4 -4
drivers/gpio/gpiolib.c
··· 349 349 else { 350 350 long value; 351 351 352 - status = strict_strtol(buf, 0, &value); 352 + status = kstrtol(buf, 0, &value); 353 353 if (status == 0) { 354 354 if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) 355 355 value = !value; ··· 570 570 } else { 571 571 long value; 572 572 573 - status = strict_strtol(buf, 0, &value); 573 + status = kstrtol(buf, 0, &value); 574 574 if (status == 0) 575 575 status = sysfs_set_active_low(desc, dev, value != 0); 576 576 } ··· 652 652 struct gpio_desc *desc; 653 653 int status; 654 654 655 - status = strict_strtol(buf, 0, &gpio); 655 + status = kstrtol(buf, 0, &gpio); 656 656 if (status < 0) 657 657 goto done; 658 658 ··· 694 694 struct gpio_desc *desc; 695 695 int status; 696 696 697 - status = strict_strtol(buf, 0, &gpio); 697 + status = kstrtol(buf, 0, &gpio); 698 698 if (status < 0) 699 699 goto done; 700 700