]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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 1eb063fe660a1e9810bbba41921d1a1fe46ba288..f4fdaeff2917eda1e830a7ba6098434274116e88 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 bd302f5cb35600478a9f4a845d2f23c2420ce43d..139d8268c8dcfe47bbc04c8afed5df49bc52c441 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 498da6be3e4e4341b985073eed2306c93538ec07..6c4c33ded6a94cc2e9ac1feb581ddc62b2143fe3 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);