Fix checkpatch warning: Avoid CamelCase by renaming following parameters of function dot11d_update_country_ie pTaddr -> p_taddr CoutryIeLen -> coutry_ie_len pCoutryIe -> p_coutry_ie Signed-off-by: Himadri Pandya <himadri18.07@xxxxxxxxx> --- drivers/staging/rtl8192e/dot11d.c | 14 +++++++------- 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 5075879d1623..12dd866af63c 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_ie(struct rtllib_device *dev, u8 *pTaddr, - u16 CoutryIeLen, u8 *pCoutryIe) +void dot11d_update_country_ie(struct rtllib_device *dev, u8 *p_taddr, + u16 coutry_ie_len, u8 *p_coutry_ie) { struct rt_dot11d_info *pDot11dInfo = GET_DOT11D_INFO(dev); u8 i, j, NumTriples, MaxChnlNum; @@ -124,8 +124,8 @@ void dot11d_update_country_ie(struct rtllib_device *dev, u8 *pTaddr, memset(pDot11dInfo->channel_map, 0, MAX_CHANNEL_NUMBER + 1); memset(pDot11dInfo->max_tx_pwr_dbm_list, 0xFF, MAX_CHANNEL_NUMBER + 1); MaxChnlNum = 0; - NumTriples = (CoutryIeLen - 3) / 3; - pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3); + NumTriples = (coutry_ie_len - 3) / 3; + pTriple = (struct chnl_txpow_triple *)(p_coutry_ie + 3); for (i = 0; i < NumTriples; i++) { if (MaxChnlNum >= pTriple->first_chnl) { netdev_info(dev->dev, @@ -151,10 +151,10 @@ void dot11d_update_country_ie(struct rtllib_device *dev, u8 *pTaddr, pTriple = (struct chnl_txpow_triple *)((u8 *)pTriple + 3); } - UPDATE_CIE_SRC(dev, pTaddr); + UPDATE_CIE_SRC(dev, p_taddr); - pDot11dInfo->country_ie_len = CoutryIeLen; - memcpy(pDot11dInfo->country_ie_buf, pCoutryIe, CoutryIeLen); + pDot11dInfo->country_ie_len = coutry_ie_len; + memcpy(pDot11dInfo->country_ie_buf, p_coutry_ie, coutry_ie_len); pDot11dInfo->state = DOT11D_STATE_LEARNED; } diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 0df31c79b5fd..ae2389efdff7 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 *__p_ieee_dev) 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_ie(struct rtllib_device *dev, u8 *pTaddr, - u16 CoutryIeLen, u8 *pCoutryIe); +void dot11d_update_country_ie(struct rtllib_device *dev, u8 *p_taddr, + u16 coutry_ie_len, u8 *p_coutry_ie); void dot11d_scan_complete(struct rtllib_device *dev); #endif -- 2.17.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel