Function _rtl92d_evm_db_to_percentage is functionally identical
to the generic version rtl_evm_db_to_percentage, so remove
_rtl92d_evm_db_to_percentage and use the generic version instead.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
 #include "../wifi.h"
 #include "../pci.h"
 #include "../base.h"
+#include "../stats.h"
 #include "reg.h"
 #include "def.h"
 #include "phy.h"
                return 100 + antpower;
 }
 
-static u8 _rtl92d_evm_db_to_percentage(s8 value)
-{
-       s8 ret_val = value;
-
-       if (ret_val >= 0)
-               ret_val = 0;
-       if (ret_val <= -33)
-               ret_val = -33;
-       ret_val = 0 - ret_val;
-       ret_val *= 3;
-       if (ret_val == 99)
-               ret_val = 100;
-       return ret_val;
-}
-
 static long _rtl92de_translate_todbm(struct ieee80211_hw *hw,
                                     u8 signal_strength_index)
 {
                else
                        max_spatial_stream = 1;
                for (i = 0; i < max_spatial_stream; i++) {
-                       evm = _rtl92d_evm_db_to_percentage(p_drvinfo->rxevm[i]);
+                       evm = rtl_evm_db_to_percentage(p_drvinfo->rxevm[i]);
                        if (packet_match_bssid) {
                                if (i == 0)
                                        pstats->signalquality =