staging:rtl8192u: Rename Dot11d_Reset - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Wed, 8 Aug 2018 21:00:29 +0000 (22:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:17:08 +0000 (19:17 +0200)
The function Dot11d_Reset causes a checkpatch issue due to its use of
CamelCase naming, so has been renamed to dot11d_reset.

This is a coding style change which should have no impact on runtime
code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/dot11d.c
drivers/staging/rtl8192u/ieee80211/dot11d.h
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
drivers/staging/rtl8192u/r8192U_core.c

index aef16794af7607e8a5b4cf4231d5787e5de5671d..d6baeec91669cba55db3772cbe85b6dae902c094 100644 (file)
@@ -20,7 +20,7 @@ void dot11d_init(struct ieee80211_device *ieee)
 EXPORT_SYMBOL(dot11d_init);
 
 /* Reset to the state as we are just entering a regulatory domain. */
-void Dot11d_Reset(struct ieee80211_device *ieee)
+void dot11d_reset(struct ieee80211_device *ieee)
 {
        u32 i;
        struct rt_dot11d_info *pDot11dInfo = GET_DOT11D_INFO(ieee);
@@ -38,7 +38,7 @@ void Dot11d_Reset(struct ieee80211_device *ieee)
        pDot11dInfo->country_ie_len = 0;
        RESET_CIE_WATCHDOG(ieee);
 }
-EXPORT_SYMBOL(Dot11d_Reset);
+EXPORT_SYMBOL(dot11d_reset);
 
 /*
  * Update country IE from Beacon or Probe Resopnse and configure PHY for
@@ -127,7 +127,7 @@ void DOT11D_ScanComplete(struct ieee80211_device *dev)
        case DOT11D_STATE_DONE:
                if (GET_CIE_WATCHDOG(dev) == 0) {
                        /* Reset country IE if previous one is gone. */
-                       Dot11d_Reset(dev);
+                       dot11d_reset(dev);
                }
                break;
        case DOT11D_STATE_NONE:
index 8e65e54a372c75c634e29b992d755c56fe521cb3..73cf2e6aeb060da2d99aec1f7dcfe2293f987eaf 100644 (file)
@@ -44,7 +44,7 @@ struct rt_dot11d_info {
 #define UPDATE_CIE_WATCHDOG(ieee_dev) (++GET_CIE_WATCHDOG(ieee_dev))
 
 void dot11d_init(struct ieee80211_device *dev);
-void Dot11d_Reset(struct ieee80211_device *dev);
+void dot11d_reset(struct ieee80211_device *dev);
 void Dot11d_UpdateCountryIe(struct ieee80211_device *dev,
                            u8 *pTaddr,
                            u16 CoutryIeLen,
index 212cc9ccbb9651bc65991e3d1cc012996f8fccbb..39ed743a1a568636b9cd4d233be52f2cd9203cab 100644 (file)
@@ -2357,7 +2357,7 @@ void ieee80211_disassociate(struct ieee80211_device *ieee)
        if (ieee->data_hard_stop)
                ieee->data_hard_stop(ieee->dev);
        if (IS_DOT11D_ENABLE(ieee))
-               Dot11d_Reset(ieee);
+               dot11d_reset(ieee);
        ieee->state = IEEE80211_NOLINK;
        ieee->is_set_key = false;
        ieee->link_change(ieee->dev);
index c77f35102fd4a3ba8fb180182bbc00dc2c2a346a..da4b376d6122c7e5cc85e466df1b5f25864dec44 100644 (file)
@@ -212,7 +212,7 @@ static void rtl819x_set_channel_map(u8 channel_plan, struct r8192_priv *priv)
                 * otherwise, it shall follow global domain settings.
                 */
                GET_DOT11D_INFO(ieee)->enabled = 0;
-               Dot11d_Reset(ieee);
+               dot11d_reset(ieee);
                ieee->bGlobalDomain = true;
                break;