Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2615950pxb; Sun, 17 Oct 2021 20:36:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMpGkWo1ILWLaBF2v6k0QeC9GILr7A7Lva/K1ht3QHXNhb8Ddh8i0vAUOTMu4CXTFSjjdT X-Received: by 2002:a17:90b:1041:: with SMTP id gq1mr30204583pjb.31.1634528185220; Sun, 17 Oct 2021 20:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528185; cv=none; d=google.com; s=arc-20160816; b=H7Eco1OCa24hQS5e2VAsxF8quwNv4scSgM0+eHMjyTxq3oTpiEQr6y17rzJ5cpHMpZ Q5DiOS97UCJj6E08VXvjl+4SLbnqJUQDvjsQD8TY6eKHb3ORbDpFwoOC/ObJTxaFWNDz W09YXWajExt1guEZjfFipefmwLME/me/a78zbKOUM7HkqCPj++e508Cdjid4OD7J+3eV Cx42ombx7Zg1NV37cdskXTNH0+XTZz6czh+ftUs7kos07V5BKcsceuu1VeJ1nx7YcyE0 ZZLKBmaXX2/0uIhrmPuF5UcYhAxYr9ZwxyLDYH0zDTJFqKP56kqRyoKZK/GwIste7vSF rOuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=k3p21n1n78OYAiZCo+0oH8NsvrJwqauJ/oQ4Yl7mIJc=; b=tHzqM73co/zNAX7WkFXgQaMSAxxdxzQRVDiHKARMdbSFH7Vc/YY0uJlApPZoPotElM 9g0w03jW/lubVS1ZbQI+k5fUeh/lOTZor/2ikQrhypNMu2gZ1xstUOwtmcSATMA7NdGs P345KcqR3qlBhgzoRJZu+7nyowUfnCa2fXIrqTBJpKBNgx45t6gNd9X/GPSiK+4PGAZv oLLTXXQP5vYPB9OmIQ+lCdsv0+vJwxi+MhVMYvn9YeP2yTvGZZmE+atSJiO0fOlm/rMX y4WZzlRlwr+8o77czoO+iIGLMs362HhqlykDyrqlsUqPFcoqQ/sp79kC5AJ1sWV93OU2 EROg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj1si31987706pjb.89.2021.10.17.20.36.13; Sun, 17 Oct 2021 20:36:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244389AbhJPLc5 (ORCPT + 98 others); Sat, 16 Oct 2021 07:32:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244348AbhJPLcu (ORCPT ); Sat, 16 Oct 2021 07:32:50 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64080C061570 for ; Sat, 16 Oct 2021 04:30:42 -0700 (PDT) Received: from ipservice-092-217-067-147.092.217.pools.vodafone-ip.de ([92.217.67.147] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mbhte-00046d-54; Sat, 16 Oct 2021 13:30:38 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 5/8] staging: r8188eu: PHY_SetRFPathSwitch_8188E is not used Date: Sat, 16 Oct 2021 13:30:05 +0200 Message-Id: <20211016113008.27549-6-martin@kaiser.cx> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211016113008.27549-1-martin@kaiser.cx> References: <20211016113008.27549-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the PHY_SetRFPathSwitch_8188E function which is not used. It was the only caller of phy_setrfpathswitch_8188e, that function can be removed as well. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/hal/HalPhyRf_8188e.c | 38 ------------------- .../staging/r8188eu/include/Hal8188EPhyCfg.h | 3 -- 2 files changed, 41 deletions(-) diff --git a/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c b/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c index f01ee3cd8795..79f407c280be 100644 --- a/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c +++ b/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c @@ -1189,41 +1189,3 @@ void PHY_LCCalibrate_8188E(struct adapter *adapt) phy_LCCalibrate_8188E(adapt, false); } } - -static void phy_setrfpathswitch_8188e(struct adapter *adapt, bool main, bool is2t) -{ - struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); - struct odm_dm_struct *dm_odm = &pHalData->odmpriv; - - if (!adapt->hw_init_completed) { - u8 u1btmp; - u1btmp = ODM_Read1Byte(dm_odm, REG_LEDCFG2) | BIT(7); - ODM_Write1Byte(dm_odm, REG_LEDCFG2, u1btmp); - ODM_SetBBReg(dm_odm, rFPGA0_XAB_RFParameter, BIT(13), 0x01); - } - - if (is2t) { /* 92C */ - if (main) - ODM_SetBBReg(dm_odm, rFPGA0_XB_RFInterfaceOE, BIT(5) | BIT(6), 0x1); /* 92C_Path_A */ - else - ODM_SetBBReg(dm_odm, rFPGA0_XB_RFInterfaceOE, BIT(5) | BIT(6), 0x2); /* BT */ - } else { /* 88C */ - if (main) - ODM_SetBBReg(dm_odm, rFPGA0_XA_RFInterfaceOE, BIT(8) | BIT(9), 0x2); /* Main */ - else - ODM_SetBBReg(dm_odm, rFPGA0_XA_RFInterfaceOE, BIT(8) | BIT(9), 0x1); /* Aux */ - } -} - -void PHY_SetRFPathSwitch_8188E(struct adapter *adapt, bool main) -{ - struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); - struct odm_dm_struct *dm_odm = &pHalData->odmpriv; - - if (dm_odm->RFType == ODM_2T2R) { - phy_setrfpathswitch_8188e(adapt, main, true); - } else { - /* For 88C 1T1R */ - phy_setrfpathswitch_8188e(adapt, main, false); - } -} diff --git a/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h b/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h index 084bccc5dcb9..feae0b32cac6 100644 --- a/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h +++ b/drivers/staging/r8188eu/include/Hal8188EPhyCfg.h @@ -195,9 +195,6 @@ void PHY_SetBWMode8188E(struct adapter *adapter, /* channel switch related funciton */ void PHY_SwChnl8188E(struct adapter *adapter, u8 channel); -/* BB/MAC/RF other monitor API */ -void PHY_SetRFPathSwitch_8188E(struct adapter *adapter, bool main); - void storePwrIndexDiffRateOffset(struct adapter *adapter, u32 regaddr, u32 mask, u32 data); /*--------------------------Exported Function prototype---------------------*/ -- 2.20.1