OSDN Git Service

staging: rtl8192e: Remove rtl92e_config_phy
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 27 Mar 2023 21:02:19 +0000 (23:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Mar 2023 11:34:38 +0000 (13:34 +0200)
Remove rtl92e_config_phy to improve readability.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/5c433417b4e8e96a70c23a03bec30d26e45791d0.1679949171.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h

index 1eb063f..f4fdaef 100644 (file)
@@ -691,7 +691,7 @@ start:
        }
 
        if (priv->rst_progress == RESET_TYPE_NORESET) {
-               rtStatus = rtl92e_config_phy(dev);
+               rtStatus = rtl92e_config_rf(dev);
                if (!rtStatus) {
                        netdev_info(dev, "RF Config failed\n");
                        return rtStatus;
index bd302f5..139d826 100644 (file)
@@ -468,15 +468,6 @@ void rtl92e_set_tx_power(struct net_device *dev, u8 channel)
        rtl92e_set_ofdm_tx_power(dev, powerlevelOFDM24G);
 }
 
-bool rtl92e_config_phy(struct net_device *dev)
-{
-       bool rtStatus = true;
-
-       rtStatus = rtl92e_config_rf(dev);
-
-       return rtStatus;
-}
-
 u8 rtl92e_config_rf_path(struct net_device *dev, enum rf90_radio_path eRFPath)
 {
 
index 498da6b..6c4c33d 100644 (file)
@@ -39,7 +39,6 @@ bool rtl92e_check_bb_and_rf(struct net_device *dev,
 bool rtl92e_config_bb(struct net_device *dev);
 void rtl92e_get_tx_power(struct net_device *dev);
 void rtl92e_set_tx_power(struct net_device *dev, u8 channel);
-bool rtl92e_config_phy(struct net_device *dev);
 u8 rtl92e_config_rf_path(struct net_device *dev, enum rf90_radio_path eRFPath);
 
 u8 rtl92e_set_channel(struct net_device *dev, u8 channel);