Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp92613pxy; Fri, 30 Apr 2021 00:48:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp1sWmd2xkFndYAdWLOV29BuDReq8WuNBHOhzc9j+5a5KWcpyQoeGmYznFqqpq+8xaKN+8 X-Received: by 2002:a63:4d50:: with SMTP id n16mr3439428pgl.237.1619768902151; Fri, 30 Apr 2021 00:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619768902; cv=none; d=google.com; s=arc-20160816; b=eyL81ne0mHi8aZMzBq15hE9i2TRMcoKsxEcXmB7eQTctdAZCOf3v5x+SjD2PDNvKV0 vBbWX/ydpx8UkwJEcAMDkZROZNyIPnv1AH9rmjnB/g5Fq0sdDnHxHvGXoKN/af9QTtaV XU6IBMNjAhrTEYcF2QzuDmPImbg4NL+3i7tjWAzhWct90qFFjsbbvTN2Vmmlv1HbBM+L tWSn3a7L64evnOoCUDH87eH6TsN94HoO+sRxjQrZhAwKuIYNWnUMj18Kj4ixroaWK8a0 TVjsCgTS8yPWhQs2m4dygZY/nd493LZ/Go8CZkx1V6bOOUjAGTfBfW/nytIYlTWnrkxX Y0AQ== 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 :dkim-signature; bh=vUdMFn0pzx+qCKX4tOp46p2P1z+8kq23wVz0Evq/QVQ=; b=mBQTwGaY+4YYrkickpp+uRsMM+lmvnwelsK68dVpVMgeTZb+Ui7Ani75nS87s+aDuN OYDsyUwZaVjl6XFQTAcKGsJQhi+nYAvta2w1rZItVOzWRPEaCnWy+FVi55a079xBygx8 eanQTa/Ig9EUdchro1eQHX8QUyOy1GJBr52wJTwdyk4kDk72guBxkaUwHTwJ8dht3K6S 8kMUBJZfgPyDMU+MjtA94MREpoenOWBRy2pxvyFGmz5Elm+ffVatF25nX2N4/Jswurg0 Wjhe1yrXpIczckMBLeFRPvz+bt7XlAchOGBNHeQWSaR5DTODCzgQ9G8DtWQS8I/xlDjF 0M9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PNjPaoDB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si2675302pgr.391.2021.04.30.00.48.09; Fri, 30 Apr 2021 00:48:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PNjPaoDB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbhD3Hqn (ORCPT + 99 others); Fri, 30 Apr 2021 03:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231496AbhD3Hpq (ORCPT ); Fri, 30 Apr 2021 03:45:46 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35A1C061348 for ; Fri, 30 Apr 2021 00:44:56 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id h10so81487100edt.13 for ; Fri, 30 Apr 2021 00:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vUdMFn0pzx+qCKX4tOp46p2P1z+8kq23wVz0Evq/QVQ=; b=PNjPaoDBzfbnZKuYSYtUDG2oRGshZrqGSMVYCPdiF9tTUX3RxxaBcxvpZ0i4/XuBXO IIR8SM3OHKudaubAA3nnfVJAt7JLYN+eHMtAlvi8X6wdSZBrFzjCylrSgHISVHLl8hwa +Z72rebzTYZ09BmLpIQmO3zM8t6Nik6jrOleug5AOKqcOmDcu/TyfgcoIC44ADGSkhuu kQoHFEMgSFQC1pNhCF4PzrMv2LoqWHNSjm6I+foJBWGJ7GxxMMHvs2p2Ix5SKDLhp5bq ugWanh1gVoZmIwZDwe3szyOwauVX1VIGJ7f7jXYxAM/oLFGWtEMFYjFREUBtjkHlPiUw PfCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vUdMFn0pzx+qCKX4tOp46p2P1z+8kq23wVz0Evq/QVQ=; b=Jz5bssCiTgcaZZr4Tosj65wPLNXTuo8EckgkpVVkFkwBcUYdlpktKZ+Ei4cXvncQ7H xgoUEOVgPeukhGCXcs38Hnz1CTdmnCGOaMJ4L4/aNSawrIpjBRgK5gWmtj0aolZWMjIF KssRklCm/W7ZibMLFGIypsyJEbqptzDoBb33a+qqMh7XIvn0bF00irI/ANMHHjFsabSC bpDWWe6OHj3I3g1OBV7xyeBk2CtyjV7ANbUCfKokq4JTzT+PucDB92WEX9rwhHKrrccp xbii4fD/vszJT7m/vyvDlz5syirM1x3AXEMP2xOfWuKB3+Uny5QfRsj6D7RvGVl6ScsR 25nw== X-Gm-Message-State: AOAM533hvPSybtZmq984/IM8oBnOw/X1iz6tdPI+T1qK9bD4Av470OO0 VRLFxQtJkViKrYJW1ZCA/2/4sHMXc1C/8w== X-Received: by 2002:a05:6402:51cd:: with SMTP id r13mr4191751edd.116.1619768695113; Fri, 30 Apr 2021 00:44:55 -0700 (PDT) Received: from agape ([5.171.81.86]) by smtp.gmail.com with ESMTPSA id i4sm1429496ejv.58.2021.04.30.00.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 00:44:54 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 30/43] staging: rtl8723bs: remove hal_btcoex_GetDBG() function Date: Fri, 30 Apr 2021 09:43:48 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove unused hal_btcoex_GetDBG() function definition and prototype. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 123 ------------------ .../staging/rtl8723bs/include/hal_btcoex.h | 1 - 2 files changed, 124 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c index cac2d6077403..02d9997094f2 100644 --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c @@ -1492,126 +1492,3 @@ void hal_btcoex_DisplayBtCoexInfo(struct adapter *padapter, u8 *pbuf, u32 bufsiz DBG_BT_INFO_INIT(pinfo, NULL, 0); } -u32 hal_btcoex_GetDBG(struct adapter *padapter, u8 *pStrBuf, u32 bufSize) -{ - s32 count; - u8 *pstr; - u32 leftSize; - - - if (!pStrBuf || bufSize == 0) - return 0; - - pstr = pStrBuf; - leftSize = bufSize; - - count = rtw_sprintf(pstr, leftSize, "#define DBG\t%d\n", DBG); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - - count = rtw_sprintf(pstr, leftSize, "BTCOEX Debug Setting:\n"); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - - count = rtw_sprintf(pstr, leftSize, - "INTERFACE / ALGORITHM: 0x%08X / 0x%08X\n\n", - GLBtcDbgType[BTC_MSG_INTERFACE], - GLBtcDbgType[BTC_MSG_ALGORITHM]); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - - count = rtw_sprintf(pstr, leftSize, "INTERFACE Debug Setting Definition:\n"); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[0]=%d for INTF_INIT\n", - (GLBtcDbgType[BTC_MSG_INTERFACE] & INTF_INIT) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[2]=%d for INTF_NOTIFY\n\n", - (GLBtcDbgType[BTC_MSG_INTERFACE] & INTF_NOTIFY) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - - count = rtw_sprintf(pstr, leftSize, "ALGORITHM Debug Setting Definition:\n"); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[0]=%d for BT_RSSI_STATE\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_BT_RSSI_STATE) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[1]=%d for WIFI_RSSI_STATE\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_WIFI_RSSI_STATE) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[2]=%d for BT_MONITOR\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_BT_MONITOR) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[3]=%d for TRACE\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[4]=%d for TRACE_FW\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_FW) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[5]=%d for TRACE_FW_DETAIL\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_FW_DETAIL) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[6]=%d for TRACE_FW_EXEC\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_FW_EXEC) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[7]=%d for TRACE_SW\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_SW) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[8]=%d for TRACE_SW_DETAIL\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_SW_DETAIL) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - count = rtw_sprintf(pstr, leftSize, "\tbit[9]=%d for TRACE_SW_EXEC\n", - (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_SW_EXEC) ? 1 : 0); - if ((count < 0) || (count >= leftSize)) - goto exit; - pstr += count; - leftSize -= count; - -exit: - count = pstr - pStrBuf; - - return count; -} diff --git a/drivers/staging/rtl8723bs/include/hal_btcoex.h b/drivers/staging/rtl8723bs/include/hal_btcoex.h index 9048499e756a..eb9d0ba861a5 100644 --- a/drivers/staging/rtl8723bs/include/hal_btcoex.h +++ b/drivers/staging/rtl8723bs/include/hal_btcoex.h @@ -53,6 +53,5 @@ u8 hal_btcoex_LpsVal(struct adapter *); u32 hal_btcoex_GetRaMask(struct adapter *); void hal_btcoex_RecordPwrMode(struct adapter *padapter, u8 *pCmdBuf, u8 cmdLen); void hal_btcoex_DisplayBtCoexInfo(struct adapter *, u8 *pbuf, u32 bufsize); -u32 hal_btcoex_GetDBG(struct adapter *, u8 *pStrBuf, u32 bufSize); #endif /* !__HAL_BTCOEX_H__ */ -- 2.20.1