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

video: replace strict_strtoul() with kstrtoul()

The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Jingoo Han and committed by
Tomi Valkeinen
f5725af5 e0f3aab9

+6 -6
+2 -2
drivers/video/fsl-diu-fb.c
··· 469 469 unsigned long val; 470 470 471 471 if (s) { 472 - if (!strict_strtoul(s, 10, &val) && (val <= 2)) 472 + if (!kstrtoul(s, 10, &val) && (val <= 2)) 473 473 port = (enum fsl_diu_monitor_port) val; 474 474 else if (strncmp(s, "lvds", 4) == 0) 475 475 port = FSL_DIU_PORT_LVDS; ··· 1853 1853 if (!strncmp(opt, "monitor=", 8)) { 1854 1854 monitor_port = fsl_diu_name_to_port(opt + 8); 1855 1855 } else if (!strncmp(opt, "bpp=", 4)) { 1856 - if (!strict_strtoul(opt + 4, 10, &val)) 1856 + if (!kstrtoul(opt + 4, 10, &val)) 1857 1857 default_bpp = val; 1858 1858 } else 1859 1859 fb_mode = opt;
+3 -3
drivers/video/omap2/displays/panel-taal.c
··· 573 573 unsigned long t; 574 574 int r; 575 575 576 - r = strict_strtoul(buf, 10, &t); 576 + r = kstrtoul(buf, 10, &t); 577 577 if (r) 578 578 return r; 579 579 ··· 611 611 unsigned long t; 612 612 int r; 613 613 614 - r = strict_strtoul(buf, 10, &t); 614 + r = kstrtoul(buf, 10, &t); 615 615 if (r) 616 616 return r; 617 617 ··· 660 660 unsigned long t; 661 661 int r; 662 662 663 - r = strict_strtoul(buf, 10, &t); 663 + r = kstrtoul(buf, 10, &t); 664 664 if (r) 665 665 return r; 666 666
+1 -1
drivers/video/wm8505fb.c
··· 173 173 struct wm8505fb_info *fbi = to_wm8505fb_info(info); 174 174 unsigned long tmp; 175 175 176 - if (strict_strtoul(buf, 10, &tmp) || (tmp > 0xff)) 176 + if (kstrtoul(buf, 10, &tmp) || (tmp > 0xff)) 177 177 return -EINVAL; 178 178 fbi->contrast = tmp; 179 179