mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: navin patidar <navin.patidar@gmail.com>
To: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	navin patidar <navin.patidar@gmail.com>
Subject: [PATCH 09/28] staging: rtl8188eu: Remove unused function PHY_UpdateTxPowerDbm8188E()
Date: Sun, 18 May 2014 20:49:02 +0530	[thread overview]
Message-ID: <1400426361-19596-10-git-send-email-navin.patidar@gmail.com> (raw)
In-Reply-To: <1400426361-19596-1-git-send-email-navin.patidar@gmail.com>

Signed-off-by: navin patidar <navin.patidar@gmail.com>
---
 drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c    |   37 --------------------
 drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h |    1 -
 2 files changed, 38 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c b/drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c
index 79f86db..7cc7f44 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c
@@ -878,43 +878,6 @@ PHY_SetTxPowerLevel8188E(
 	rtl8188e_PHY_RF6052SetOFDMTxPower(Adapter, &ofdmPowerLevel[0], &BW20PowerLevel[0], &BW40PowerLevel[0], channel);
 }
 
-/*  */
-/*	Description: */
-/*		Update transmit power level of all channel supported. */
-/*  */
-/*	TODO: */
-/*		A mode. */
-/*	By Bruce, 2008-02-04. */
-/*  */
-bool
-PHY_UpdateTxPowerDbm8188E(
-		struct adapter *Adapter,
-		int		powerInDbm
-	)
-{
-	struct hal_data_8188e	*pHalData = GET_HAL_DATA(Adapter);
-	u8 idx;
-	u8 rf_path;
-
-	/*  TODO: A mode Tx power. */
-	u8 CckTxPwrIdx = phy_DbmToTxPwrIdx(Adapter, WIRELESS_MODE_B, powerInDbm);
-	u8 OfdmTxPwrIdx = phy_DbmToTxPwrIdx(Adapter, WIRELESS_MODE_N_24G, powerInDbm);
-
-	if (OfdmTxPwrIdx - pHalData->LegacyHTTxPowerDiff > 0)
-		OfdmTxPwrIdx -= pHalData->LegacyHTTxPowerDiff;
-	else
-		OfdmTxPwrIdx = 0;
-
-	for (idx = 0; idx < 14; idx++) {
-		for (rf_path = 0; rf_path < 2; rf_path++) {
-			pHalData->TxPwrLevelCck[rf_path][idx] = CckTxPwrIdx;
-			pHalData->TxPwrLevelHT40_1S[rf_path][idx] =
-			pHalData->TxPwrLevelHT40_2S[rf_path][idx] = OfdmTxPwrIdx;
-		}
-	}
-	return true;
-}
-
 void
 PHY_ScanOperationBackup8188E(
 		struct adapter *Adapter,
diff --git a/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h b/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h
index 25cae81..260ea6b 100644
--- a/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h
+++ b/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h
@@ -224,7 +224,6 @@ void rtl8192c_PHY_GetHWRegOriginalValue(struct adapter *adapter);
 /*  BB TX Power R/W */
 void PHY_GetTxPowerLevel8188E(struct adapter *adapter, u32 *powerlevel);
 void PHY_SetTxPowerLevel8188E(struct adapter *adapter, u8 channel);
-bool PHY_UpdateTxPowerDbm8188E(struct adapter *adapter, int power);
 
 void PHY_ScanOperationBackup8188E(struct adapter *Adapter, u8 Operation);
 
-- 
1.7.10.4


  parent reply	other threads:[~2014-05-18 15:22 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-18 15:18 [PATCH 00/28] staging: rtl8188eu: Remove unnecessary functions navin patidar
2014-05-18 15:18 ` [PATCH 01/28] staging: rtl8188eu: Remove function with empty definition _InitBeaconMaxError() navin patidar
2014-05-18 15:18 ` [PATCH 02/28] staging: rtl8188eu: Remove function with empty definition _InitOperationMode() navin patidar
2014-05-18 15:18 ` [PATCH 03/28] staging: rtl8188eu: Remove function with empty definition _ps_open_RF() navin patidar
2014-05-18 15:18 ` [PATCH 04/28] staging: rtl8188eu: Remove unused function _ps_close_RF() navin patidar
2014-05-18 15:18 ` [PATCH 05/28] staging: rtl8188eu: Remove unused function rtl8188eu_ps_func() navin patidar
2014-05-19 10:52   ` Dan Carpenter
2014-05-19 15:49     ` navin patidar
2014-05-19 19:04       ` Dan Carpenter
2014-05-20  5:09         ` navin patidar
2014-05-18 15:18 ` [PATCH 06/28] staging:rtl8188eu:Remove funtion Hal_CustomizeByCustomerID_8188EU() navin patidar
2014-05-18 15:19 ` [PATCH 07/28] staging: rtl8188eu: Remove unused function rtl8188e_PHY_ConfigRFWithParaFile() navin patidar
2014-05-18 15:19 ` [PATCH 08/28] staging: rtl8188eu: Remove unused function rtl8192c_PHY_GetHWRegOriginalValue() navin patidar
2014-05-18 15:19 ` navin patidar [this message]
2014-05-18 15:19 ` [PATCH 10/28] staging:rtl8188eu: Remove unused function phy_DbmToTxPwrIdx() navin patidar
2014-05-18 15:19 ` [PATCH 11/28] staging: rtl8188eu: Remove unused funtion PHY_GetTxPowerLevel8188E() navin patidar
2014-05-18 15:19 ` [PATCH 12/28] staging: rtl8188eu: Remove unused funtion phy_TxPwrIdxToDbm() navin patidar
2014-05-18 15:19 ` [PATCH 13/28] " navin patidar
2014-05-18 15:47   ` navin patidar
2014-05-18 15:19 ` [PATCH 14/28] staging: rtl8188eu: Remove unused structure rf_shadow navin patidar
2014-05-18 15:19 ` [PATCH 15/28] staging: rtl8188eu: Remove unused function rtl8188e_RF_ChangeTxPath() navin patidar
2014-05-18 15:19 ` [PATCH 16/28] staging: rtl8188eu: Remove unused function odm_DIGbyRSSI_LPS() navin patidar
2014-05-18 15:19 ` [PATCH 17/28] staging: rtl8188eu: Remove function odm_DynamicBBPowerSaving() navin patidar
2014-05-18 15:19 ` [PATCH 18/28] staging: rtl8188eu: Remove unused function odm_DynamicBBPowerSavingInit() navin patidar
2014-05-18 15:19 ` [PATCH 19/28] staging:rtl8188eu: Remove unused function iodm_1R_CCA() navin patidar
2014-05-18 15:19 ` [PATCH 20/28] staging: rtl8188eu: Remove unused function odm_RefreshRateAdaptiveMaskMP() navin patidar
2014-05-18 15:19 ` [PATCH 21/28] staging: rtl8188eu: Remove unused function odm_RefreshRateAdaptiveMaskAPADSL() navin patidar
2014-05-18 15:19 ` [PATCH 22/28] staging: rtl8188eu: Remove unused funtion odm_DynamicTxPowerNIC() navin patidar
2014-05-18 15:19 ` [PATCH 23/28] staging: rtl8188eu: Remove unused function odm_SwAntDivChkAntSwitchCallback() navin patidar
2014-05-18 15:19 ` [PATCH 24/28] staging: rtl8188eu: Remove unused function ConvertTo_dB() navin patidar
2014-05-18 15:19 ` [PATCH 25/28] staging: rtl8188eu: Remove function with empty defination ODM_CheckPowerStatus() navin patidar
2014-05-18 15:19 ` [PATCH 26/28] staging: rtl8188eu: Remove unused function DM_DIG_LowerBound_88E() navin patidar
2014-05-18 15:19 ` [PATCH 27/28] staging: rtl8188eu: Remove unused function ODM_DynamicPrimaryCCA_DupRTS() navin patidar
2014-05-18 15:19 ` [PATCH 28/28] staging: rtl8188eu:Remove function with empty defination odm_DynamicPrimaryCCA() navin patidar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400426361-19596-10-git-send-email-navin.patidar@gmail.com \
    --to=navin.patidar@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®