aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-06-01 03:31:21 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-26 08:19:48 -0400
commitf5725af59c7dfd00809eb08ad5602b1fba58bc0f (patch)
tree40fac06873b255a6dd4ca6cf9e73d0a1462c60c1 /drivers/video
parente0f3aab9105a42fa5e111a7d988b25937833a727 (diff)
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fsl-diu-fb.c4
-rw-r--r--drivers/video/omap2/displays/panel-taal.c6
-rw-r--r--drivers/video/wm8505fb.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c
index 6c278056fc60..6dd72250111e 100644
--- a/drivers/video/fsl-diu-fb.c
+++ b/drivers/video/fsl-diu-fb.c
@@ -469,7 +469,7 @@ static enum fsl_diu_monitor_port fsl_diu_name_to_port(const char *s)
469 unsigned long val; 469 unsigned long val;
470 470
471 if (s) { 471 if (s) {
472 if (!strict_strtoul(s, 10, &val) && (val <= 2)) 472 if (!kstrtoul(s, 10, &val) && (val <= 2))
473 port = (enum fsl_diu_monitor_port) val; 473 port = (enum fsl_diu_monitor_port) val;
474 else if (strncmp(s, "lvds", 4) == 0) 474 else if (strncmp(s, "lvds", 4) == 0)
475 port = FSL_DIU_PORT_LVDS; 475 port = FSL_DIU_PORT_LVDS;
@@ -1853,7 +1853,7 @@ static int __init fsl_diu_setup(char *options)
1853 if (!strncmp(opt, "monitor=", 8)) { 1853 if (!strncmp(opt, "monitor=", 8)) {
1854 monitor_port = fsl_diu_name_to_port(opt + 8); 1854 monitor_port = fsl_diu_name_to_port(opt + 8);
1855 } else if (!strncmp(opt, "bpp=", 4)) { 1855 } else if (!strncmp(opt, "bpp=", 4)) {
1856 if (!strict_strtoul(opt + 4, 10, &val)) 1856 if (!kstrtoul(opt + 4, 10, &val))
1857 default_bpp = val; 1857 default_bpp = val;
1858 } else 1858 } else
1859 fb_mode = opt; 1859 fb_mode = opt;
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index c4f78bda115a..52541f264021 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -573,7 +573,7 @@ static ssize_t taal_store_esd_interval(struct device *dev,
573 unsigned long t; 573 unsigned long t;
574 int r; 574 int r;
575 575
576 r = strict_strtoul(buf, 10, &t); 576 r = kstrtoul(buf, 10, &t);
577 if (r) 577 if (r)
578 return r; 578 return r;
579 579
@@ -611,7 +611,7 @@ static ssize_t taal_store_ulps(struct device *dev,
611 unsigned long t; 611 unsigned long t;
612 int r; 612 int r;
613 613
614 r = strict_strtoul(buf, 10, &t); 614 r = kstrtoul(buf, 10, &t);
615 if (r) 615 if (r)
616 return r; 616 return r;
617 617
@@ -660,7 +660,7 @@ static ssize_t taal_store_ulps_timeout(struct device *dev,
660 unsigned long t; 660 unsigned long t;
661 int r; 661 int r;
662 662
663 r = strict_strtoul(buf, 10, &t); 663 r = kstrtoul(buf, 10, &t);
664 if (r) 664 if (r)
665 return r; 665 return r;
666 666
diff --git a/drivers/video/wm8505fb.c b/drivers/video/wm8505fb.c
index 01f9ace068e2..3072f30cad19 100644
--- a/drivers/video/wm8505fb.c
+++ b/drivers/video/wm8505fb.c
@@ -173,7 +173,7 @@ static ssize_t contrast_store(struct device *dev,
173 struct wm8505fb_info *fbi = to_wm8505fb_info(info); 173 struct wm8505fb_info *fbi = to_wm8505fb_info(info);
174 unsigned long tmp; 174 unsigned long tmp;
175 175
176 if (strict_strtoul(buf, 10, &tmp) || (tmp > 0xff)) 176 if (kstrtoul(buf, 10, &tmp) || (tmp > 0xff))
177 return -EINVAL; 177 return -EINVAL;
178 fbi->contrast = tmp; 178 fbi->contrast = tmp;
179 179