projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa34efe
)
drm/nouveau/hwmon: replace strict_strtol() with kstrtol()
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 5 Feb 2014 02:02:59 +0000
(11:02 +0900)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 26 Mar 2014 03:59:31 +0000
(13:59 +1000)
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: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_hwmon.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_hwmon.c
b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
index 5e4ab58f4f6b3d7f5f065dd15f1e553bcdd022d9..19fd767bab100d9acc90765af696be81241b71a5 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_hwmon.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_hwmon.c
@@
-383,8
+383,9
@@
nouveau_hwmon_set_pwm1_enable(struct device *d, struct device_attribute *a,
long value;
int ret;
- if (strict_strtol(buf, 10, &value) == -EINVAL)
- return -EINVAL;
+ ret = kstrtol(buf, 10, &value);
+ if (ret)
+ return ret;
ret = therm->attr_set(therm, NOUVEAU_THERM_ATTR_FAN_MODE, value);
if (ret)