diff options
| author | Jingoo Han <[email protected]> | 2013-05-31 21:24:06 +0000 | 
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-06-03 00:39:46 -0700 | 
| commit | 27d7f47756f40fb1bc3159e09217f740f5c5b5b1 (patch) | |
| tree | c4f2d3368efab3eaf4bb6bca9499a62dd688e131 /drivers/net/wireless/ath/ath9k/debug.c | |
| parent | 67d6bfa6863c8535445e1dcdb3385e3a05cd32a7 (diff) | |
net: wireless: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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); |