mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2026-06-18 18:29:01 +01:00
rtl8723ds: Remove WINDOWS code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
#define rsprintf snprintf
|
||||
#elif defined(PLATFORM_WINDOWS)
|
||||
#define rsprintf sprintf_s
|
||||
#endif
|
||||
|
||||
#define DCMD_Printf DBG_BT_INFO
|
||||
|
||||
@@ -3850,9 +3850,6 @@ static void halbtc8723d1ant_psd_showdata(IN struct btc_coexist *btcoexist)
|
||||
}
|
||||
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static void halbtc8723d1ant_psd_maxholddata(IN struct btc_coexist *btcoexist,
|
||||
IN u32 gen_count)
|
||||
{
|
||||
@@ -3884,9 +3881,6 @@ static void halbtc8723d1ant_psd_maxholddata(IN struct btc_coexist *btcoexist,
|
||||
psd_scan->psd_loop_max_value[gen_count - 1] = loop_val_max;
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static u32 halbtc8723d1ant_psd_getdata(IN struct btc_coexist *btcoexist, IN u32 point)
|
||||
{
|
||||
/* reg 0x808[9:0]: FFT data x */
|
||||
@@ -3918,9 +3912,6 @@ static u32 halbtc8723d1ant_psd_getdata(IN struct btc_coexist *btcoexist, IN u32
|
||||
return psd_report;
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static boolean halbtc8723d1ant_psd_sweep_point(IN struct btc_coexist *btcoexist,
|
||||
IN u32 cent_freq, IN s32 offset, IN u32 span, IN u32 points,
|
||||
IN u32 avgnum, IN u32 loopcnt)
|
||||
@@ -4250,9 +4241,6 @@ static boolean halbtc8723d1ant_psd_sweep_point(IN struct btc_coexist *btcoexist,
|
||||
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static boolean halbtc8723d1ant_psd_antenna_detection(IN struct btc_coexist
|
||||
*btcoexist)
|
||||
{
|
||||
@@ -4634,9 +4622,6 @@ static boolean halbtc8723d1ant_psd_antenna_detection(IN struct btc_coexist
|
||||
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static boolean halbtc8723d1ant_psd_antenna_detection_check(IN struct btc_coexist
|
||||
*btcoexist)
|
||||
{
|
||||
@@ -6045,15 +6030,6 @@ void ex_halbtc8723d1ant_periodical(IN struct btc_coexist *btcoexist)
|
||||
|
||||
board_info->antdetval = psd_scan->ant_det_psd_scan_peak_val/100;
|
||||
value = board_info->antdetval;
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
{
|
||||
PWCHAR registryName;
|
||||
|
||||
registryName = L"antdetval";
|
||||
PlatformWriteCommonDwordRegistry(registryName, &value);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6086,9 +6062,6 @@ void ex_halbtc8723d1ant_set_antenna_notify(IN struct btc_coexist *btcoexist,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
void ex_halbtc8723d1ant_antenna_detection(IN struct btc_coexist *btcoexist,
|
||||
IN u32 cent_freq, IN u32 offset, IN u32 span, IN u32 seconds)
|
||||
{
|
||||
|
||||
@@ -4431,9 +4431,6 @@ static void halbtc8723d2ant_psd_showdata(IN struct btc_coexist *btcoexist)
|
||||
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static void halbtc8723d2ant_psd_maxholddata(IN struct btc_coexist *btcoexist,
|
||||
IN u32 gen_count)
|
||||
{
|
||||
@@ -4466,10 +4463,6 @@ static void halbtc8723d2ant_psd_maxholddata(IN struct btc_coexist *btcoexist,
|
||||
|
||||
}
|
||||
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static u32 halbtc8723d2ant_psd_getdata(IN struct btc_coexist *btcoexist, IN u32 point)
|
||||
{
|
||||
/* reg 0x808[9:0]: FFT data x */
|
||||
@@ -4501,9 +4494,6 @@ static u32 halbtc8723d2ant_psd_getdata(IN struct btc_coexist *btcoexist, IN u32
|
||||
return psd_report;
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static boolean halbtc8723d2ant_psd_sweep_point(IN struct btc_coexist *btcoexist,
|
||||
IN u32 cent_freq, IN s32 offset, IN u32 span, IN u32 points,
|
||||
IN u32 avgnum, IN u32 loopcnt)
|
||||
@@ -4833,9 +4823,6 @@ static boolean halbtc8723d2ant_psd_sweep_point(IN struct btc_coexist *btcoexist,
|
||||
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static boolean halbtc8723d2ant_psd_antenna_detection(IN struct btc_coexist
|
||||
*btcoexist)
|
||||
{
|
||||
@@ -5216,9 +5203,6 @@ static boolean halbtc8723d2ant_psd_antenna_detection(IN struct btc_coexist
|
||||
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static boolean halbtc8723d2ant_psd_antenna_detection_check(IN struct btc_coexist
|
||||
*btcoexist)
|
||||
{
|
||||
@@ -6664,9 +6648,6 @@ void ex_halbtc8723d2ant_set_antenna_notify(IN struct btc_coexist *btcoexist,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
void ex_halbtc8723d2ant_antenna_detection(IN struct btc_coexist *btcoexist,
|
||||
IN u32 cent_freq, IN u32 offset, IN u32 span, IN u32 seconds)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user