Commit f5725af5 authored by Jingoo Han's avatar Jingoo Han Committed by Tomi Valkeinen

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent e0f3aab9
...@@ -469,7 +469,7 @@ static enum fsl_diu_monitor_port fsl_diu_name_to_port(const char *s) ...@@ -469,7 +469,7 @@ static enum fsl_diu_monitor_port fsl_diu_name_to_port(const char *s)
unsigned long val; unsigned long val;
if (s) { if (s) {
if (!strict_strtoul(s, 10, &val) && (val <= 2)) if (!kstrtoul(s, 10, &val) && (val <= 2))
port = (enum fsl_diu_monitor_port) val; port = (enum fsl_diu_monitor_port) val;
else if (strncmp(s, "lvds", 4) == 0) else if (strncmp(s, "lvds", 4) == 0)
port = FSL_DIU_PORT_LVDS; port = FSL_DIU_PORT_LVDS;
...@@ -1853,7 +1853,7 @@ static int __init fsl_diu_setup(char *options) ...@@ -1853,7 +1853,7 @@ static int __init fsl_diu_setup(char *options)
if (!strncmp(opt, "monitor=", 8)) { if (!strncmp(opt, "monitor=", 8)) {
monitor_port = fsl_diu_name_to_port(opt + 8); monitor_port = fsl_diu_name_to_port(opt + 8);
} else if (!strncmp(opt, "bpp=", 4)) { } else if (!strncmp(opt, "bpp=", 4)) {
if (!strict_strtoul(opt + 4, 10, &val)) if (!kstrtoul(opt + 4, 10, &val))
default_bpp = val; default_bpp = val;
} else } else
fb_mode = opt; fb_mode = opt;
......
...@@ -573,7 +573,7 @@ static ssize_t taal_store_esd_interval(struct device *dev, ...@@ -573,7 +573,7 @@ static ssize_t taal_store_esd_interval(struct device *dev,
unsigned long t; unsigned long t;
int r; int r;
r = strict_strtoul(buf, 10, &t); r = kstrtoul(buf, 10, &t);
if (r) if (r)
return r; return r;
...@@ -611,7 +611,7 @@ static ssize_t taal_store_ulps(struct device *dev, ...@@ -611,7 +611,7 @@ static ssize_t taal_store_ulps(struct device *dev,
unsigned long t; unsigned long t;
int r; int r;
r = strict_strtoul(buf, 10, &t); r = kstrtoul(buf, 10, &t);
if (r) if (r)
return r; return r;
...@@ -660,7 +660,7 @@ static ssize_t taal_store_ulps_timeout(struct device *dev, ...@@ -660,7 +660,7 @@ static ssize_t taal_store_ulps_timeout(struct device *dev,
unsigned long t; unsigned long t;
int r; int r;
r = strict_strtoul(buf, 10, &t); r = kstrtoul(buf, 10, &t);
if (r) if (r)
return r; return r;
......
...@@ -173,7 +173,7 @@ static ssize_t contrast_store(struct device *dev, ...@@ -173,7 +173,7 @@ static ssize_t contrast_store(struct device *dev,
struct wm8505fb_info *fbi = to_wm8505fb_info(info); struct wm8505fb_info *fbi = to_wm8505fb_info(info);
unsigned long tmp; unsigned long tmp;
if (strict_strtoul(buf, 10, &tmp) || (tmp > 0xff)) if (kstrtoul(buf, 10, &tmp) || (tmp > 0xff))
return -EINVAL; return -EINVAL;
fbi->contrast = tmp; fbi->contrast = tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment