]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:rtl8192u: Make function rtl8192_phyConfigBB static
authorJohn Whitmore <johnfwhitmore@gmail.com>
Sun, 26 Aug 2018 21:14:21 +0000 (22:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:27:48 +0000 (19:27 +0200)
The function rtl8192_phyConfigBB is only used in the file in which it
is defined so can be declared static. Additionally the prototype has
been removed from the header file, as it is not used.

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

index e7c3582f550e94e1ca0481deb56e2de0075aec88..97d3cdcd7fb01f0ee3e4e4703e40599249d44526 100644 (file)
@@ -511,7 +511,7 @@ void rtl8192_phy_configmac(struct net_device *dev)
  * notice:    BB parameters may change all the time, so please make
  *            sure it has been synced with the newest.
  *****************************************************************************/
-void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType)
+static void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType)
 {
        u32 i;
 
index c7ec3182857f07a688890d71ddc5eaa06a9a059a..c938fd8eb51ce64bbb9b274a5a0b5e168d3b904b 100644 (file)
@@ -52,7 +52,6 @@ u32 rtl8192_phy_QueryRFReg(struct net_device *dev,
                           enum rf90_radio_path_e e_rfpath,
                           u32 reg_addr, u32 bitmask);
 void rtl8192_phy_configmac(struct net_device *dev);
-void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType);
 u8 rtl8192_phy_checkBBAndRF(struct net_device *dev,
                            enum hw90_block_e CheckBlock,
                            enum rf90_radio_path_e e_rfpath);