diff options
author | Himadri Pandya <himadri18.07@gmail.com> | 2019-02-10 14:13:18 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-11 10:02:47 +0100 |
commit | 7ed27a09417814d27405ad1eba932a1201a2b1c0 (patch) | |
tree | 38bf8582e8c6c6a3c389dc25a15041614a2919af /drivers/staging/rtl8192e | |
parent | 5441ab2ff54e2fe5a9c9561d53a28cd94e720f5f (diff) | |
download | linux-7ed27a09417814d27405ad1eba932a1201a2b1c0.tar.bz2 |
staging: rtl8192e: rename parameters of function dot11d_update_country - style
Rename following parameters of function dot11d_update_country to fix
checkpatch warning: Avoid CamelCase and make the parameter names more
readable, understandable.
pTaddr -> address
CoutryIeLen -> country_len
pCoutryIe -> country
Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/dot11d.c | 14 | ||||
-rw-r--r-- | drivers/staging/rtl8192e/dot11d.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index fdf6d951384c..68f53013cb95 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -114,8 +114,8 @@ void dot11d_reset(struct rtllib_device *ieee) RESET_CIE_WATCHDOG(ieee); } -void dot11d_update_country(struct rtllib_device *dev, u8 *pTaddr, - u16 CoutryIeLen, u8 *pCoutryIe) +void dot11d_update_country(struct rtllib_device *dev, u8 *address, + u16 country_len, u8 *country) { struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(dev); u8 i, j, number_of_triples, max_channel_number; @@ -124,8 +124,8 @@ void dot11d_update_country(struct rtllib_device *dev, u8 *pTaddr, memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1); max_channel_number = 0; - number_of_triples = (CoutryIeLen - 3) / 3; - triple = (struct chnl_txpow_triple *)(pCoutryIe + 3); + number_of_triples = (country_len - 3) / 3; + triple = (struct chnl_txpow_triple *)(country + 3); for (i = 0; i < number_of_triples; i++) { if (max_channel_number >= triple->first_channel) { netdev_info(dev->dev, @@ -151,10 +151,10 @@ void dot11d_update_country(struct rtllib_device *dev, u8 *pTaddr, triple = (struct chnl_txpow_triple *)((u8 *)triple + 3); } - UPDATE_CIE_SRC(dev, pTaddr); + UPDATE_CIE_SRC(dev, address); - dot11d_info->country_len = CoutryIeLen; - memcpy(dot11d_info->country_buffer, pCoutryIe, CoutryIeLen); + dot11d_info->country_len = country_len; + memcpy(dot11d_info->country_buffer, country, country_len); dot11d_info->state = DOT11D_STATE_LEARNED; } diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 492af05521d6..548b7206c0db 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -84,8 +84,8 @@ static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__pIeeeDev) void dot11d_init(struct rtllib_device *dev); void dot11d_channel_map(u8 channel_plan, struct rtllib_device *ieee); void dot11d_reset(struct rtllib_device *dev); -void dot11d_update_country(struct rtllib_device *dev, u8 *pTaddr, - u16 CoutryIeLen, u8 *pCoutryIe); +void dot11d_update_country(struct rtllib_device *dev, u8 *address, + u16 country_len, u8 *country); void dot11d_scan_complete(struct rtllib_device *dev); #endif |