提交 6277ed65 编写于 作者: L Luciano Coelho

wl12xx: use kstrtoul functions

Use the new kstrtoul functions instead of the deprecated strict_strtoul().
Signed-off-by: NLuciano Coelho <coelho@ti.com>
上级 341b7cde
...@@ -267,7 +267,7 @@ static ssize_t gpio_power_write(struct file *file, ...@@ -267,7 +267,7 @@ static ssize_t gpio_power_write(struct file *file,
} }
buf[len] = '\0'; buf[len] = '\0';
ret = strict_strtoul(buf, 0, &value); ret = kstrtoul(buf, 0, &value);
if (ret < 0) { if (ret < 0) {
wl1271_warning("illegal value in gpio_power"); wl1271_warning("illegal value in gpio_power");
return -EINVAL; return -EINVAL;
......
...@@ -3397,8 +3397,7 @@ static ssize_t wl1271_sysfs_store_bt_coex_state(struct device *dev, ...@@ -3397,8 +3397,7 @@ static ssize_t wl1271_sysfs_store_bt_coex_state(struct device *dev,
unsigned long res; unsigned long res;
int ret; int ret;
ret = strict_strtoul(buf, 10, &res); ret = kstrtoul(buf, 10, &res);
if (ret < 0) { if (ret < 0) {
wl1271_warning("incorrect value written to bt_coex_mode"); wl1271_warning("incorrect value written to bt_coex_mode");
return count; return count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册