diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index b37eb8d38811..51cc0fa5cd3e 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -69,7 +69,7 @@ static ssize_t write_file_debug(struct file *file, const char __user *user_buf,  		return -EFAULT;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, &mask)) +	if (kstrtoul(buf, 0, &mask))  		return -EINVAL;  	common->debug_mask = mask; @@ -114,7 +114,7 @@ static ssize_t write_file_tx_chainmask(struct file *file, const char __user *use  		return -EFAULT;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, &mask)) +	if (kstrtoul(buf, 0, &mask))  		return -EINVAL;  	ah->txchainmask = mask; @@ -157,7 +157,7 @@ static ssize_t write_file_rx_chainmask(struct file *file, const char __user *use  		return -EFAULT;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, &mask)) +	if (kstrtoul(buf, 0, &mask))  		return -EINVAL;  	ah->rxchainmask = mask; @@ -200,7 +200,7 @@ static ssize_t write_file_disable_ani(struct file *file,  		return -EFAULT;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, &disable_ani)) +	if (kstrtoul(buf, 0, &disable_ani))  		return -EINVAL;  	common->disable_ani = !!disable_ani; @@ -253,7 +253,7 @@ static ssize_t write_file_ant_diversity(struct file *file,  		goto exit;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, &antenna_diversity)) +	if (kstrtoul(buf, 0, &antenna_diversity))  		return -EINVAL;  	common->antenna_diversity = !!antenna_diversity; @@ -1278,7 +1278,7 @@ static ssize_t write_file_regidx(struct file *file, const char __user *user_buf,  		return -EFAULT;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, ®idx)) +	if (kstrtoul(buf, 0, ®idx))  		return -EINVAL;  	sc->debug.regidx = regidx; @@ -1323,7 +1323,7 @@ static ssize_t write_file_regval(struct file *file, const char __user *user_buf,  		return -EFAULT;  	buf[len] = '\0'; -	if (strict_strtoul(buf, 0, ®val)) +	if (kstrtoul(buf, 0, ®val))  		return -EINVAL;  	ath9k_ps_wakeup(sc); |