提交 883ee4f7 编写于 作者: D Daniel Walter 提交者: Rafael J. Wysocki

PM / sysfs: replace strict_str* with kstrto*

Replace strict_strtoul() with kstrtoul() in pm_async_store() and
pm_qos_power_write().

[rjw: Modified subject and changelog.]
Signed-off-by: NDaniel Walter <sahne@0x90.at>
Acked-by: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 77b67063
...@@ -59,7 +59,7 @@ static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr, ...@@ -59,7 +59,7 @@ static ssize_t pm_async_store(struct kobject *kobj, struct kobj_attribute *attr,
{ {
unsigned long val; unsigned long val;
if (strict_strtoul(buf, 10, &val)) if (kstrtoul(buf, 10, &val))
return -EINVAL; return -EINVAL;
if (val > 1) if (val > 1)
......
...@@ -500,7 +500,7 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, ...@@ -500,7 +500,7 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
} else { } else {
ascii_value[count] = '\0'; ascii_value[count] = '\0';
} }
ret = strict_strtoul(ascii_value, 16, &ulval); ret = kstrtoul(ascii_value, 16, &ulval);
if (ret) { if (ret) {
pr_debug("%s, 0x%lx, 0x%x\n", ascii_value, ulval, ret); pr_debug("%s, 0x%lx, 0x%x\n", ascii_value, ulval, ret);
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册