staging: rtl8723bs: remove unused file hal_phy.c
authorMichael Straube <straube.linux@gmail.com>
Sun, 21 Jul 2019 17:57:35 +0000 (19:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:56:05 +0000 (09:56 +0200)
Remove the unused file hal_phy.c. No function from this file is used
in the driver code and it is not listed in the Makefile.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20190721175735.24173-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_phy.c [deleted file]

diff --git a/drivers/staging/rtl8723bs/hal/hal_phy.c b/drivers/staging/rtl8723bs/hal/hal_phy.c
deleted file mode 100644 (file)
index 24a9d8f..0000000
+++ /dev/null
@@ -1,157 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/******************************************************************************
- *
- * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
- *
- ******************************************************************************/
-#define _HAL_PHY_C_
-
-#include <drv_types.h>
-
-/*  */
-/*  ==> RF shadow Operation API Code Section!!! */
-/*  */
-/*-----------------------------------------------------------------------------
- * Function:   PHY_RFShadowRead
- *                     PHY_RFShadowWrite
- *                     PHY_RFShadowCompare
- *                     PHY_RFShadowRecorver
- *                     PHY_RFShadowCompareAll
- *                     PHY_RFShadowRecorverAll
- *                     PHY_RFShadowCompareFlagSet
- *                     PHY_RFShadowRecorverFlagSet
- *
- * Overview:   When we set RF register, we must write shadow at first.
- *             When we are running, we must compare shadow abd locate error addr.
- *             Decide to recorver or not.
- *
- * Input:       NONE
- *
- * Output:      NONE
- *
- * Return:      NONE
- *
- * Revised History:
- * When                        Who             Remark
- * 11/20/2008  MHC             Create Version 0.
- *
- *---------------------------------------------------------------------------*/
-u32 PHY_RFShadowRead(IN PADAPTER Adapter, IN u8 eRFPath, IN u32 Offset)
-{
-       return  RF_Shadow[eRFPath][Offset].Value;
-
-}      /* PHY_RFShadowRead */
-
-
-void PHY_RFShadowWrite(
-       IN PADAPTER Adapter, IN u8 eRFPath, IN u32 Offset, IN u32 Data
-)
-{
-       RF_Shadow[eRFPath][Offset].Value = (Data & bRFRegOffsetMask);
-       RF_Shadow[eRFPath][Offset].Driver_Write = true;
-
-}      /* PHY_RFShadowWrite */
-
-
-bool PHY_RFShadowCompare(IN PADAPTER Adapter, IN u8 eRFPath, IN u32 Offset)
-{
-       u32 reg;
-       /*  Check if we need to check the register */
-       if (RF_Shadow[eRFPath][Offset].Compare == true) {
-               reg = rtw_hal_read_rfreg(Adapter, eRFPath, Offset, bRFRegOffsetMask);
-               /*  Compare shadow and real rf register for 20bits!! */
-               if (RF_Shadow[eRFPath][Offset].Value != reg) {
-                       /*  Locate error position. */
-                       RF_Shadow[eRFPath][Offset].ErrorOrNot = true;
-                       /* RT_TRACE(COMP_INIT, DBG_LOUD, */
-                       /* PHY_RFShadowCompare RF-%d Addr%02lx Err = %05lx\n", */
-                       /* eRFPath, Offset, reg)); */
-               }
-               return RF_Shadow[eRFPath][Offset].ErrorOrNot;
-       }
-       return false;
-}      /* PHY_RFShadowCompare */
-
-
-void PHY_RFShadowRecorver(IN PADAPTER Adapter, IN u8 eRFPath, IN u32 Offset)
-{
-       /*  Check if the address is error */
-       if (RF_Shadow[eRFPath][Offset].ErrorOrNot == true) {
-               /*  Check if we need to recorver the register. */
-               if (RF_Shadow[eRFPath][Offset].Recorver == true) {
-                       rtw_hal_write_rfreg(Adapter, eRFPath, Offset, bRFRegOffsetMask,
-                                                       RF_Shadow[eRFPath][Offset].Value);
-                       /* RT_TRACE(COMP_INIT, DBG_LOUD, */
-                       /* PHY_RFShadowRecorver RF-%d Addr%02lx=%05lx", */
-                       /* eRFPath, Offset, RF_Shadow[eRFPath][Offset].Value)); */
-               }
-       }
-
-}      /* PHY_RFShadowRecorver */
-
-
-void PHY_RFShadowCompareAll(IN PADAPTER Adapter)
-{
-       u8 eRFPath = 0;
-       u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
-
-       for (eRFPath = 0; eRFPath < RF6052_MAX_PATH; eRFPath++) {
-               for (Offset = 0; Offset < maxReg; Offset++) {
-                       PHY_RFShadowCompare(Adapter, eRFPath, Offset);
-               }
-       }
-
-}      /* PHY_RFShadowCompareAll */
-
-
-void PHY_RFShadowRecorverAll(IN PADAPTER Adapter)
-{
-       u8 eRFPath = 0;
-       u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
-
-       for (eRFPath = 0; eRFPath < RF6052_MAX_PATH; eRFPath++) {
-               for (Offset = 0; Offset < maxReg; Offset++) {
-                       PHY_RFShadowRecorver(Adapter, eRFPath, Offset);
-               }
-       }
-
-}      /* PHY_RFShadowRecorverAll */
-
-
-void
-PHY_RFShadowCompareFlagSet(
-       IN PADAPTER Adapter, IN u8 eRFPath, IN u32 Offset, IN u8 Type
-)
-{
-       /*  Set True or False!!! */
-       RF_Shadow[eRFPath][Offset].Compare = Type;
-
-}      /* PHY_RFShadowCompareFlagSet */
-
-
-void PHY_RFShadowRecorverFlagSet(
-       IN PADAPTER Adapter, IN u8 eRFPath, IN u32 Offset, IN u8 Type
-)
-{
-       /*  Set True or False!!! */
-       RF_Shadow[eRFPath][Offset].Recorver = Type;
-
-}      /* PHY_RFShadowRecorverFlagSet */
-
-
-void PHY_RFShadowCompareFlagSetAll(IN PADAPTER Adapter)
-{
-       u8 eRFPath = 0;
-       u32 Offset = 0, maxReg = GET_RF6052_REAL_MAX_REG(Adapter);
-
-       for (eRFPath = 0; eRFPath < RF6052_MAX_PATH; eRFPath++) {
-               for (Offset = 0; Offset < maxReg; Offset++) {
-                       /*  2008/11/20 MH For S3S4 test, we only check reg 26/27 now!!!! */
-                       if (Offset != 0x26 && Offset != 0x27)
-                               PHY_RFShadowCompareFlagSet(Adapter, eRFPath, Offset, false);
-                       else
-                               PHY_RFShadowCompareFlagSet(Adapter, eRFPath, Offset, true);
-               }
-       }
-
-}      /* PHY_RFShadowCompareFlagSetAll */