mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
staging: rtl8192e: Remove unused function rtl92e_dm_backup_state()
rtl92e_dm_backup_state() is unused. Remove dead code. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/104b248b35b4fda560056fc4ab4ac230dea98d3f.1696266964.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f656445356
commit
8e386a037b
@ -973,25 +973,6 @@ static void _rtl92e_dm_bb_initialgain_restore(struct net_device *dev)
|
||||
rtl92e_set_bb_reg(dev, UFWP, bMaskByte1, 0x1);
|
||||
}
|
||||
|
||||
void rtl92e_dm_backup_state(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
u32 bit_mask = bMaskByte0;
|
||||
|
||||
priv->bswitch_fsync = false;
|
||||
|
||||
if (dm_digtable.dig_algorithm == DIG_ALGO_BY_RSSI)
|
||||
return;
|
||||
|
||||
rtl92e_set_bb_reg(dev, UFWP, bMaskByte1, 0x8);
|
||||
priv->initgain_backup.xaagccore1 = rtl92e_get_bb_reg(dev, rOFDM0_XAAGCCore1, bit_mask);
|
||||
priv->initgain_backup.xbagccore1 = rtl92e_get_bb_reg(dev, rOFDM0_XBAGCCore1, bit_mask);
|
||||
priv->initgain_backup.xcagccore1 = rtl92e_get_bb_reg(dev, rOFDM0_XCAGCCore1, bit_mask);
|
||||
priv->initgain_backup.xdagccore1 = rtl92e_get_bb_reg(dev, rOFDM0_XDAGCCore1, bit_mask);
|
||||
bit_mask = bMaskByte2;
|
||||
priv->initgain_backup.cca = (u8)rtl92e_get_bb_reg(dev, rCCK0_CCA, bit_mask);
|
||||
}
|
||||
|
||||
static void _rtl92e_dm_dig_init(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
|
@ -179,7 +179,6 @@ void rtl92e_dm_txpower_tracking_wq(void *data);
|
||||
void rtl92e_dm_cck_txpower_adjust(struct net_device *dev, bool binch14);
|
||||
|
||||
void rtl92e_dm_restore_state(struct net_device *dev);
|
||||
void rtl92e_dm_backup_state(struct net_device *dev);
|
||||
void rtl92e_dm_init_edca_turbo(struct net_device *dev);
|
||||
void rtl92e_dm_rf_pathcheck_wq(void *data);
|
||||
void rtl92e_dm_init_txpower_tracking(struct net_device *dev);
|
||||
|
Loading…
Reference in New Issue
Block a user