@@ -197,7 +197,7 @@ static ssize_t gpio_sw_disable_store(struct device *dev,
struct gpio_switch *sw = dev_get_drvdata(dev);
unsigned long res;
- if (strict_strtoul(buf, 10, &res) < 0)
+ if (kstrtoul(buf, 10, &res) < 0)
return -EINVAL;
if (!!res == sw->disabled)
@@ -403,7 +403,7 @@ static ssize_t tsc2005_disable_store(struct device *dev,
unsigned long val;
int error;
- error = strict_strtoul(buf, 10, &val);
+ error = kstrtoul(buf, 10, &val);
if (error)
return error;
@@ -1506,7 +1506,7 @@ static ssize_t wl1251_sysfs_store_tx_mgmt_frm_rate(struct device *dev,
unsigned long res;
int ret;
- ret = strict_strtoul(buf, 10, &res);
+ ret = kstrtoul(buf, 10, &res);
if (ret < 0) {
wl1251_warning("incorrect value written to tx_mgmt_frm_rate");
@@ -1600,7 +1600,7 @@ static ssize_t wl1251_sysfs_store_bt_coex_mode(struct device *dev,
unsigned long res;
int ret;
- ret = strict_strtoul(buf, 10, &res);
+ ret = kstrtoul(buf, 10, &res);
if (ret < 0) {
wl1251_warning("incorrect value written to bt_coex_mode");