From nobody Tue Apr 29 09:42:32 2025
Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com
 [209.85.128.45])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5432820E03F
	for <linux-kernel@vger.kernel.org>; Tue,  1 Apr 2025 16:59:57 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
 arc=none smtp.client-ip=209.85.128.45
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1743526800; cv=none;
 b=XSc0/+f2+rP5j+9/Rod/RsFb+8CEJELuJDdk5KpWbHcWP23NMToKqvFxJRME6UUpvF0qpjTMCLWeZdg5GeWjb++87xLkY3/zS6562HMWAfnDsflVVy9329zQgrWpMuSCKfRsuKoRwOXc6WjMAxcVcB4ZipPzsPbiv8AUmDNc6wQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1743526800; c=relaxed/simple;
	bh=aOOWiCI3ZK6+dzDuMUQZ7ZuRMibgi+DohpZfmHWxiow=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version;
 b=XBT5LEzECFIyed21xsstJcwPJau0J3o0rPFkRJqsnklIvhInwClb/bASL8LDTdZehBkrYdY0fLiLaX8q6huf5KkAjtNksYCZIa5I27Me0Vz/ouOEjTHXqEbsIoA7Cx4WdwM9xUIZBhDcdAcfX0wFf3IS/GaeP54g+t3KA4I5bZY=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com;
 spf=pass smtp.mailfrom=gmail.com;
 dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b=Ff/t4HHQ; arc=none smtp.client-ip=209.85.128.45
Authentication-Results: smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
 spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b="Ff/t4HHQ"
Received: by mail-wm1-f45.google.com with SMTP id
 5b1f17b1804b1-43cf3192f3bso58738765e9.1
        for <linux-kernel@vger.kernel.org>;
 Tue, 01 Apr 2025 09:59:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743526795; x=1744131595;
 darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to;
        bh=pK/O4pDg7hGitdXCJDavzci3Ws7cE2OFjqh+I33m5qk=;
        b=Ff/t4HHQOMXCokeyw0cgk9Xez2roAdZY8WkaDJfFtc6WMsZLiNCMhu1BAb2li181+s
         eTis2JAhTpLrJW7Q6KnT58hUIFFnFLTBfglBLpARkdTTkcQuZFkJ3nE8lDetz8KwJoZ+
         /cebKyvFaWZakgMGv8XLvIette+58kYxNkb0yPMd7vSRUmMkWts2JKvX4lmg4KEMpZTt
         Kpm4+OEa2lmiCTcc/FvSNojWgP+urAJpi893UK3+Z4MahoemF7nRSR2p8fML3gkywvIF
         tysboRe1ccp8vzbZkFjetOnKk0oQP6prL/PjFDodQp7qD6MY7/yg4DEZo4HUyGc4CYkE
         SXnw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743526795; x=1744131595;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=pK/O4pDg7hGitdXCJDavzci3Ws7cE2OFjqh+I33m5qk=;
        b=QsRMtg5xIicg7IgQUqU97NTBG30HbQUlA7zCqPwMXe+lregOKzBIhKgu5L6Fq9/8gn
         fK9yQqOfW1z2646RusMhVnY3x1ZN2/wWcEbuAIODdiiZa0WfNsGGDUktjqQHAlHLendR
         6HE6Rh+OWmh/oLQGOV8V0hDmUDOCk9SmbyQ/P5KvtanhaHQoFsxQez9yJHhdXkUwWG+K
         dRYDi/moDq+5v7sLLIktIT3RQPrd62b2LlUpKTXnL5/f5EBpbDG/ZYj1jkpXJeTttOOv
         vFwZf6ZDIvgNZq/R5WjTDljJnRvcvsJ7DtRGwtAkRHPYIdYrPGWUhu1GWsF8bzI+x33q
         ewCg==
X-Forwarded-Encrypted: i=1;
 AJvYcCVPVgu2Ii/HExRqfV3DNh3Euf/eBFoGW0WAkSYGT+0KGg14H+TyWALj2bat7V0zdG0v8eAQ8LzHQkzOUo4=@vger.kernel.org
X-Gm-Message-State: AOJu0YyWFZo9m3zpiL9vemv+lZ2R7FB5v64KqYxqmb2qgWN2FatmLR+T
	juP+bVQAmgq6cGEzrQzNkl+U9xOsLGcotpkbB9I5w+HYGvNQ66Cnr/8BIQK3c0A=
X-Gm-Gg: ASbGncvuTQmySEx9QXecrqRAjZmafKYzyCCAn9IUFNdBNRp+6ZvOCfgiSQclsyWzTa5
	25e6jr4iwvq1KDz+5ruo785MShP13jBUc10Bex8QsSQAumof3wng8IoUWhPoiHQ5nmcd7/s+w05
	49CTMkHZREB1+jtcavf+yJ8YEH0jWPV1sBTKIV+deiyNCNxNgiEkovKcDAftxS+QqC+ezW/UG80
	U54oh57p8WIXW+GUL1+BjUNR++7rseHJVsyxTfzzWn8QrnQohk3Hvf9uYY8ejU+cjh2ugA6Be8L
	bmRXKRZ+cqE+BroDo1kHJ593P5AFaQgdKrO8xhc=
X-Google-Smtp-Source: 
 AGHT+IETbTzAYb/h3dIJZa9Z4oxluG5CHqg0acXlqJ9p0VnpANQt/7sWH8a0uAGyXN8MoYcjIgFbBw==
X-Received: by 2002:a05:600c:3ca6:b0:43c:fa0e:471a with SMTP id
 5b1f17b1804b1-43db61d9cf5mr142340485e9.5.1743526795566;
        Tue, 01 Apr 2025 09:59:55 -0700 (PDT)
Received: from pc.. ([41.206.42.66])
        by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d8fccfe2fsm161520215e9.22.2025.04.01.09.59.53
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Apr 2025 09:59:55 -0700 (PDT)
From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org,
	outreachy@lists.linux.dev
Cc: karanja99erick@gmail.com,
	philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 1/5] staging: rtl8723bs: use preferred comparison order
Date: Tue,  1 Apr 2025 19:59:33 +0300
Message-ID: 
 <128b2c78fe04c358c96bff4a2fae1de8e7a6839d.1743524096.git.karanja99erick@gmail.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <cover.1743524096.git.karanja99erick@gmail.com>
References: <cover.1743524096.git.karanja99erick@gmail.com>
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
List-Id: <linux-kernel.vger.kernel.org>
List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Refactor  conditions check to follow the Linux kernel
coding style, which prefers placing the variable on the left side
of the comparison.

Reported by checkpatch:

	WARNING: Comparisons should place the constant on the right side
    of the test

Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
---
 drivers/staging/rtl8723bs/hal/hal_btcoex.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/r=
tl8723bs/hal/hal_btcoex.c
index b72cf520d576..9105594d2dde 100644
--- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c
+++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c
@@ -91,7 +91,7 @@ static void halbtcoutsrc_LeaveLowPower(struct btc_coexist=
 *pBtCoexist)
 	stime =3D jiffies;
 	do {
 		ready =3D rtw_register_task_alive(padapter, BTCOEX_ALIVE);
-		if (_SUCCESS =3D=3D ready)
+		if (ready =3D=3D _SUCCESS)
 			break;
=20
 		utime =3D jiffies_to_msecs(jiffies - stime);
@@ -668,7 +668,7 @@ static void halbtcoutsrc_WriteLocalReg1Byte(void *pBtcC=
ontext, u32 RegAddr, u8 D
 	struct btc_coexist *pBtCoexist =3D (struct btc_coexist *)pBtcContext;
 	struct adapter *Adapter =3D pBtCoexist->Adapter;
=20
-	if (BTC_INTF_SDIO =3D=3D pBtCoexist->chipInterface)
+	if (pBtCoexist->chipInterface =3D=3D BTC_INTF_SDIO)
 		rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data);
 	else
 		rtw_write8(Adapter, RegAddr, Data);
@@ -894,7 +894,7 @@ void EXhalbtcoutsrc_IpsNotify(struct btc_coexist *pBtCo=
exist, u8 type)
 	if (pBtCoexist->bManualControl)
 		return;
=20
-	if (IPS_NONE =3D=3D type)
+	if (type =3D=3D IPS_NONE)
 		ipsType =3D BTC_IPS_LEAVE;
 	else
 		ipsType =3D BTC_IPS_ENTER;
@@ -922,7 +922,7 @@ void EXhalbtcoutsrc_LpsNotify(struct btc_coexist *pBtCo=
exist, u8 type)
 	if (pBtCoexist->bManualControl)
 		return;
=20
-	if (PS_MODE_ACTIVE =3D=3D type)
+	if (type =3D=3D PS_MODE_ACTIVE)
 		lpsType =3D BTC_LPS_DISABLE;
 	else
 		lpsType =3D BTC_LPS_ENABLE;
@@ -1000,7 +1000,7 @@ void EXhalbtcoutsrc_MediaStatusNotify(struct btc_coex=
ist *pBtCoexist, enum
 	if (pBtCoexist->bManualControl)
 		return;
=20
-	if (RT_MEDIA_CONNECT =3D=3D mediaStatus)
+	if (mediaStatus =3D=3D RT_MEDIA_CONNECT)
 		mStatus =3D BTC_MEDIA_CONNECT;
 	else
 		mStatus =3D BTC_MEDIA_DISCONNECT;
@@ -1026,11 +1026,11 @@ void EXhalbtcoutsrc_SpecialPacketNotify(struct btc_=
coexist *pBtCoexist, u8 pktTy
 	if (pBtCoexist->bManualControl)
 		return;
=20
-	if (PACKET_DHCP =3D=3D pktType) {
+	if (pktType =3D=3D PACKET_DHCP) {
 		packetType =3D BTC_PACKET_DHCP;
-	} else if (PACKET_EAPOL =3D=3D pktType) {
+	} else if (pktType =3D=3D PACKET_EAPOL) {
 		packetType =3D BTC_PACKET_EAPOL;
-	} else if (PACKET_ARP =3D=3D pktType) {
+	} else if (pktType =3D=3D PACKET_ARP) {
 		packetType =3D BTC_PACKET_ARP;
 	} else {
 		return;
@@ -1114,13 +1114,13 @@ void EXhalbtcoutsrc_Periodical(struct btc_coexist *=
pBtCoexist)
=20
 void EXhalbtcoutsrc_SetAntNum(u8 type, u8 antNum)
 {
-	if (BT_COEX_ANT_TYPE_PG =3D=3D type) {
+	if (type =3D=3D BT_COEX_ANT_TYPE_PG) {
 		GLBtCoexist.boardInfo.pgAntNum =3D antNum;
 		GLBtCoexist.boardInfo.btdmAntNum =3D antNum;
-	} else if (BT_COEX_ANT_TYPE_ANTDIV =3D=3D type) {
+	} else if (type =3D=3D BT_COEX_ANT_TYPE_ANTDIV) {
 		GLBtCoexist.boardInfo.btdmAntNum =3D antNum;
 		/* GLBtCoexist.boardInfo.btdmAntPos =3D BTC_ANTENNA_AT_MAIN_PORT; */
-	} else if (BT_COEX_ANT_TYPE_DETECTED =3D=3D type) {
+	} else if (type =3D=3D BT_COEX_ANT_TYPE_DETECTED) {
 		GLBtCoexist.boardInfo.btdmAntNum =3D antNum;
 		/* GLBtCoexist.boardInfo.btdmAntPos =3D BTC_ANTENNA_AT_MAIN_PORT; */
 	}
--=20
2.43.0
From nobody Tue Apr 29 09:42:32 2025
Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com
 [209.85.128.42])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 731E420E03F
	for <linux-kernel@vger.kernel.org>; Tue,  1 Apr 2025 17:00:04 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
 arc=none smtp.client-ip=209.85.128.42
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1743526806; cv=none;
 b=nG6W5fwbs/L57NAeP4uRzuCl9zVo3KS5H6st0/AHVYLoCpKfT6TSVxsvysdUWeFH4WGLJsf7grjItrLNdY9MG7pF4UXG9cIoxNRic5UE/ihQ4EHnuwRkt4poLds5V/lNtYoiBx78JsrU/MjB1tXkEwpOmhVWjU/Wg0LVPbC/PAs=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1743526806; c=relaxed/simple;
	bh=8Z/Q1Yqqxhozl8RrcKexRki6sw2jFiBNt//dnoasYvk=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version;
 b=mjlomF13sBT5OikQeGCnQZfB2VAKiccOYjMfrsxrjE0INCeTw8Vz4sgKMJoZT9hhoq7qoag2DbK97IPBF3zlBG7MStChyhARzc5Tf/ufAzqQkDgQhPf2oUVJO5RbixkcjANOv91GDRnbDAWZteZ4dDeFBFFw0U8Dhit3C1/UXPM=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com;
 spf=pass smtp.mailfrom=gmail.com;
 dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b=L1Qkwdc+; arc=none smtp.client-ip=209.85.128.42
Authentication-Results: smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
 spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b="L1Qkwdc+"
Received: by mail-wm1-f42.google.com with SMTP id
 5b1f17b1804b1-43ea40a6e98so16966835e9.1
        for <linux-kernel@vger.kernel.org>;
 Tue, 01 Apr 2025 10:00:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743526803; x=1744131603;
 darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to;
        bh=2gIv3lfUsZudSX+4KjXfNYnF9gzZiOWchSCAyXPUHRA=;
        b=L1Qkwdc++hhYAYYo2HVzHFF0+rZ+4jBr8I6i8pmCCxOGtxq12vKjMhkYD06dL++7bw
         WkINB0oRCR4+ovVnJiYKmNxYnTVLwt1yz03IlEcXVqacTDs5+tZayPGETwvzYhFv2ix5
         Dx+VrPllT2Eg1W+S0qOJt7DV2Dz2kYUQV9IwWm7qjuwOFmETDzg4Y5S0VeOwAvBAQECP
         /pkCa4YC4Wtujw5kwhEFcVm7lB7G7+e8uHrj/ceUJBM7c73cSsHw+6wJ2VZ6M+ZPd/Pg
         c8ePTATP6qlsZitdcnboSriwAWw9fAWLVwVOFda0gLuwhZ81rWGZ4jH1Jt0l9UOTeDz4
         9S0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743526803; x=1744131603;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=2gIv3lfUsZudSX+4KjXfNYnF9gzZiOWchSCAyXPUHRA=;
        b=aLQUgUdz/VgVqM5GLNyRqil4Yv5DzVnjk0Jt7+DoPRIaw4nZyWXjxw3k0++sE8SLUc
         hWzjL18FLgTKptknyp3unJoDN/y2SW7Zpg+FIOfxJO2daiFEWNmniGiGI0YzgSgPwOT5
         hZ8nJYkDUdLPCh3XEjeBCYKnQ/iEiahTRTrKqAJzcRyH+1K0zCSzs5v5gBGrwEWpkQ3c
         IQiz4SfmpjrQCM/AGJFXr6SM8pEwx68pyb7XKPoMfotkUwIqXy+LNfBzcQusE0BTygD3
         H/SSRuHfxa7+KcynjGqYGRuYDoF9690drWBLJpcfXPV+NeP3NJpHCmdmbA+t7C3O5so0
         sx0A==
X-Forwarded-Encrypted: i=1;
 AJvYcCXuEu51+kx1ADpAtnhGwQq9yeEgvhr3gYqu3hmI44e0weZfa1yhlusgUet9eN3KWzPK629/F1bZKNJJDMA=@vger.kernel.org
X-Gm-Message-State: AOJu0Ywwe5HC879937A0tTjTZfisvycvptsduD1swa1HxxeO8zz2I6rs
	iQZi5xMdhgIQ8tVs4xn7LQ5SP2LkU2OcEeehrSi8FPXH/CWXPqMc
X-Gm-Gg: ASbGncsIStdiPtHs8nk4KzSRtCpavlK6VbPrYLhNK+Mdw84bLt9zFNJ6PMRPPm0w9oK
	S6PC07OTjjs+pdSPcz+xyonY4oIbhQ7LmJKMnTA6XWivm0ufuPewIYyT78Tl635eUOE8zKmLZlD
	InCvnPEcPd3t6W8kjlXgza5EJzcSMtSSG2lfzGSO7fDrLRlH8/x8cBAynZHA3M3tJknLDDPFfd5
	710g9bCcsYIteSiNEhZmJsF4Tw8f/ApnuqEE67FY/p5mVDHkEe6rYetsI++5HJ5CPlWBhahZ58Q
	613R3p17FWfqDJi30m8o0qPXz6gdv8Mzy7m8p4Q=
X-Google-Smtp-Source: 
 AGHT+IFSgsTbCWtBoeDbXY6I9urDkDUv7DQvWlpcTV0hHI0IuTaiNzFmS1JTlnH4rFWfxvOkaBq/KQ==
X-Received: by 2002:a05:600c:470d:b0:43c:f470:7605 with SMTP id
 5b1f17b1804b1-43db622ade6mr116598445e9.12.1743526802414;
        Tue, 01 Apr 2025 10:00:02 -0700 (PDT)
Received: from pc.. ([41.206.42.66])
        by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d8fccfe2fsm161520215e9.22.2025.04.01.09.59.59
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Apr 2025 10:00:02 -0700 (PDT)
From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org,
	outreachy@lists.linux.dev
Cc: karanja99erick@gmail.com,
	philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 2/5] staging: rtl8723bs: add spaces between ternary and
 binary operators
Date: Tue,  1 Apr 2025 19:59:34 +0300
Message-ID: 
 <a147e8cb87627fdc218bdc6df70c980df90fde29.1743524096.git.karanja99erick@gmail.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <cover.1743524096.git.karanja99erick@gmail.com>
References: <cover.1743524096.git.karanja99erick@gmail.com>
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
List-Id: <linux-kernel.vger.kernel.org>
List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Fix spacing around binary arithmetic (`+`) and shift (`>>`) operators
to improve readability and adhere to the Linux kernel coding style.

Reported by checkpatch:

	CHECK: spaces needed around 'operator'

Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
---
 drivers/staging/rtl8723bs/hal/odm_CfoTracking.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c b/drivers/stag=
ing/rtl8723bs/hal/odm_CfoTracking.c
index 928c58be6c9b..3b43f8cfd6f4 100644
--- a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
+++ b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
@@ -155,9 +155,9 @@ void ODM_CfoTracking(void *pDM_VOID)
 		/* 4 1.6 Big jump */
 		if (pCfoTrack->bAdjust) {
 			if (CFO_ave > CFO_TH_XTAL_LOW)
-				Adjust_Xtal =3D Adjust_Xtal+((CFO_ave-CFO_TH_XTAL_LOW)>>2);
+				Adjust_Xtal =3D Adjust_Xtal + ((CFO_ave-CFO_TH_XTAL_LOW) >> 2);
 			else if (CFO_ave < (-CFO_TH_XTAL_LOW))
-				Adjust_Xtal =3D Adjust_Xtal+((CFO_TH_XTAL_LOW-CFO_ave)>>2);
+				Adjust_Xtal =3D Adjust_Xtal + ((CFO_TH_XTAL_LOW-CFO_ave) >> 2);
 		}
=20
 		/* 4 1.7 Adjust Crystal Cap. */
--=20
2.43.0
From nobody Tue Apr 29 09:42:32 2025
Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com
 [209.85.128.44])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23C9120DD43
	for <linux-kernel@vger.kernel.org>; Tue,  1 Apr 2025 17:00:10 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
 arc=none smtp.client-ip=209.85.128.44
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1743526816; cv=none;
 b=ue6kX6hwTTW42QnB6nhuudSbwFMZlkpkt+Y8D9plmPZoRhgV0AAWkXLEyugA5dSsQQYRELoztyzs54rgUBEp7V/S1p5xXSWQSxAGXpURDb0Uw6oWyRn2MExXoUWYBbhjis0nSd44RrE69o8GiC3DUaBT9ktpBUSorgWnKNXHmy8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1743526816; c=relaxed/simple;
	bh=hlzmE8prqMc9nZzcnbktxRVznxIGQtp9lQLNTgqI1pc=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version;
 b=h2x8MN8KNXTMSb28JsovDn1PsLQvAhg9z8NtgMRA9EAAFZfIZu97g9VweUkcYFtL2a2jPoMGqkNbPRHNBrnHseEn1Fr3E8AzyrNv4RE3ipFPyONGYSvDedQn4KII1QUzaw4PEB4+kgPhZXLGgCuvxS3ZXjUHuxxjnb9YzarNdYc=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com;
 spf=pass smtp.mailfrom=gmail.com;
 dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b=LI6t7M2z; arc=none smtp.client-ip=209.85.128.44
Authentication-Results: smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
 spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b="LI6t7M2z"
Received: by mail-wm1-f44.google.com with SMTP id
 5b1f17b1804b1-43cf06eabdaso55370395e9.2
        for <linux-kernel@vger.kernel.org>;
 Tue, 01 Apr 2025 10:00:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743526809; x=1744131609;
 darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to;
        bh=gBY1/kg4kjBJyP71RXqJVRWXiXwUXG4V5OuWsQC8Kok=;
        b=LI6t7M2zdpSIB7N+qo2kfmC8HbbZ339zki3r9MdjPCPdnwRbym6lVT2a/k6r4bWgYO
         xKhKNdgyEnhBy7hadi3n0oBFBWtKmw5Zl6XIl8WTZg1fdplpBWt8gRxaiPNUXSkXtEwq
         hZxjh7DWh+EiG14W2I5ZDQ87k2yIQlSXa1qv+H9AhU4k8JcQA3S51ioyljes8orcgUiF
         uTfXJVXLRnLrVub9M9zfl57ikytC6x5IntDqmF3a/T93x9GTUMtw6eqyqRlkGP+MBlHj
         3FTyKDNz63M3oke8/xkB5rw2QCb8UaIEsg2uALBvBch9G0VECb4XkGJ5bwS7MRLWONaD
         vY3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743526809; x=1744131609;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=gBY1/kg4kjBJyP71RXqJVRWXiXwUXG4V5OuWsQC8Kok=;
        b=eFWrPbR6vX5QMFPTMzne/iqr/Ukfo8Ppl6iUllHBR8MG7oVNmHH33p4TdBh66qdz3L
         xLwMAVXEZxaqE+d51lVMhUAYIqTH1qKoenP1HXUaunxbeOO8Zuo4GoK4+WL+ZfF6biIu
         VMWWnLF3og/Ml9h5+fmIswPQzXioWkheccBlLsIYbOedDisZ1C5V0nNNHuT8+RmnLDkD
         x4oYrv27KLq9+0+SYGKSvo4Nvp3kFBAZBZ5gRNTPX/yT8u+a5b5TxiQsozj16sCBlbCG
         NwJaCiV+y7zZYCqb3DnisSUz4ZpcLu8m1HLcp4eSPmOxxRhkqGUZBoh/Ud8RR3AGCDCk
         N+Sg==
X-Forwarded-Encrypted: i=1;
 AJvYcCWXRVfLiqH4MxwTQy2q01udSPlEl+5InKVXD3DrhiGlXJZMP+1WfUx6IAnp5hVYY3TUy0/lYLwaMk1Nu18=@vger.kernel.org
X-Gm-Message-State: AOJu0YwFekMW8LqeI+nB//qi4aronKoJS0sOumTVIrSckNAG38oHQt2Y
	k0SN/cKFXziLGZIsndZMWo3F8pCRyLmDh5rR+Gl2xba3SJBbHv1F6IlQ1vzs4XA=
X-Gm-Gg: ASbGncuFjk/U4CZXbdHO44K2Eb2f+yGLF/8L6PidNAM84ioBKKxTURPvaPU9HSrLD8A
	o3xk+MBM0TIG140kNsgTEdTImB2/6MyxXSErM6ScPiyeTFWK1mhRC17dLjQwWHGmNqowKk3Nnlu
	trThsxVJkjXciWB0TVLRJVNFV/PaZwXH3oycx+bxIUFHcHiIJhmhl2ABFG+aWD0HEJkEaB0EHdd
	jGvLk93PlKhXFtx9UGdXOrku/gJVoCOSRLrhn7btZVZ1PWWA1/NSGRove+0K2rVernamxgIlZr1
	0eoIyQdsNppWkKE/s8SwVQg4HNffW2PeYZvQqou53TTk8PQYjQ==
X-Google-Smtp-Source: 
 AGHT+IEVI1ci0mOKwwIvU/nmccJGGvWpW1vzl780D1zsAQUiDUgeHjlVAhJ9M1nVXHjKfVusmwyR6Q==
X-Received: by 2002:a05:600c:1382:b0:43c:e7ae:4bc9 with SMTP id
 5b1f17b1804b1-43db61e0348mr105475955e9.1.1743526808519;
        Tue, 01 Apr 2025 10:00:08 -0700 (PDT)
Received: from pc.. ([41.206.42.66])
        by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d8fccfe2fsm161520215e9.22.2025.04.01.10.00.04
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Apr 2025 10:00:07 -0700 (PDT)
From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org,
	outreachy@lists.linux.dev
Cc: karanja99erick@gmail.com,
	philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 3/5] staging: rtl8723bs: Rename variables
Date: Tue,  1 Apr 2025 19:59:35 +0300
Message-ID: 
 <c82a6c26eda3389458820938f439d4aa04e582d9.1743524096.git.karanja99erick@gmail.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <cover.1743524096.git.karanja99erick@gmail.com>
References: <cover.1743524096.git.karanja99erick@gmail.com>
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
List-Id: <linux-kernel.vger.kernel.org>
List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Rename  variables to adhere to Linux kernel coding
standards by using snake_case instead of CamelCase
and ensure proper encoding of the variables by removing
initial 'p' for pointers and initial 'b' for boolean.

    Fixes checkpatch.pl warning:
        CHECK: Avoid CamelCase: <supportRateNum>

Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
---
 .../staging/rtl8723bs/hal/HalBtc8723b1Ant.c   | 1266 ++++++++---------
 1 file changed, 633 insertions(+), 633 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/stag=
ing/rtl8723bs/hal/HalBtc8723b1Ant.c
index b3d7f50fac4c..e3c67f98e8c0 100644
--- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
+++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
@@ -16,74 +16,74 @@ static struct coex_sta_8723b_1ant *pCoexSta =3D &GLCoex=
Sta8723b1Ant;
 /*  local function proto type if needed */
 /*  local function start with halbtc8723b1ant_ */
 static u8 halbtc8723b1ant_BtRssiState(
-	u8 levelNum, u8 rssiThresh, u8 rssiThresh1
+	u8 level_num, u8 rssi_thresh, u8 rssi_thresh1
 )
 {
-	s32 btRssi =3D 0;
-	u8 btRssiState =3D pCoexSta->preBtRssiState;
+	s32 bt_rssi =3D 0;
+	u8 bt_rssi_state =3D pCoexSta->preBtRssiState;
=20
-	btRssi =3D pCoexSta->btRssi;
+	bt_rssi =3D pCoexSta->bt_rssi;
=20
-	if (levelNum =3D=3D 2) {
+	if (level_num =3D=3D 2) {
 		if (
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_LOW) ||
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_LOW)
 		) {
-			if (btRssi >=3D (rssiThresh + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
+			if (bt_rssi >=3D (rssi_thresh + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
=20
-				btRssiState =3D BTC_RSSI_STATE_HIGH;
+				bt_rssi_state =3D BTC_RSSI_STATE_HIGH;
 			else
-				btRssiState =3D BTC_RSSI_STATE_STAY_LOW;
+				bt_rssi_state =3D BTC_RSSI_STATE_STAY_LOW;
 		} else {
-			if (btRssi < rssiThresh)
-				btRssiState =3D BTC_RSSI_STATE_LOW;
+			if (bt_rssi < rssi_thresh)
+				bt_rssi_state =3D BTC_RSSI_STATE_LOW;
 			else
-				btRssiState =3D BTC_RSSI_STATE_STAY_HIGH;
+				bt_rssi_state =3D BTC_RSSI_STATE_STAY_HIGH;
 		}
-	} else if (levelNum =3D=3D 3) {
-		if (rssiThresh > rssiThresh1)
+	} else if (level_num =3D=3D 3) {
+		if (rssi_thresh > rssi_thresh1)
 			return pCoexSta->preBtRssiState;
=20
 		if (
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_LOW) ||
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_LOW)
 		) {
-			if (btRssi >=3D (rssiThresh + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
-				btRssiState =3D BTC_RSSI_STATE_MEDIUM;
+			if (bt_rssi >=3D (rssi_thresh + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
+				bt_rssi_state =3D BTC_RSSI_STATE_MEDIUM;
 			else
-				btRssiState =3D BTC_RSSI_STATE_STAY_LOW;
+				bt_rssi_state =3D BTC_RSSI_STATE_STAY_LOW;
 		} else if (
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_MEDIUM) ||
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_MEDIUM)
 		) {
-			if (btRssi >=3D (rssiThresh1 + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
-				btRssiState =3D BTC_RSSI_STATE_HIGH;
-			else if (btRssi < rssiThresh)
-				btRssiState =3D BTC_RSSI_STATE_LOW;
+			if (bt_rssi >=3D (rssi_thresh1 + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
+				bt_rssi_state =3D BTC_RSSI_STATE_HIGH;
+			else if (bt_rssi < rssi_thresh)
+				bt_rssi_state =3D BTC_RSSI_STATE_LOW;
 			else
-				btRssiState =3D BTC_RSSI_STATE_STAY_MEDIUM;
+				bt_rssi_state =3D BTC_RSSI_STATE_STAY_MEDIUM;
 		} else {
-			if (btRssi < rssiThresh1)
-				btRssiState =3D BTC_RSSI_STATE_MEDIUM;
+			if (bt_rssi < rssi_thresh1)
+				bt_rssi_state =3D BTC_RSSI_STATE_MEDIUM;
 			else
-				btRssiState =3D BTC_RSSI_STATE_STAY_HIGH;
+				bt_rssi_state =3D BTC_RSSI_STATE_STAY_HIGH;
 		}
 	}
=20
-	pCoexSta->preBtRssiState =3D btRssiState;
+	pCoexSta->preBtRssiState =3D bt_rssi_state;
=20
-	return btRssiState;
+	return bt_rssi_state;
 }
=20
 static void halbtc8723b1ant_UpdateRaMask(
-	struct btc_coexist *pBtCoexist, bool bForceExec, u32 disRateMask
+	struct btc_coexist *bt_coexist, bool force_exec, u32 dis_rate_mask
 )
 {
-	pCoexDm->curRaMask =3D disRateMask;
+	pCoexDm->curRaMask =3D dis_rate_mask;
=20
-	if (bForceExec || (pCoexDm->preRaMask !=3D pCoexDm->curRaMask))
-		pBtCoexist->fBtcSet(
-			pBtCoexist,
+	if (force_exec || (pCoexDm->preRaMask !=3D pCoexDm->curRaMask))
+		bt_coexist->fBtcSet(
+			bt_coexist,
 			BTC_SET_ACT_UPDATE_RAMASK,
 			&pCoexDm->curRaMask
 		);
@@ -91,33 +91,33 @@ static void halbtc8723b1ant_UpdateRaMask(
 }
=20
 static void halbtc8723b1ant_AutoRateFallbackRetry(
-	struct btc_coexist *pBtCoexist, bool bForceExec, u8 type
+	struct btc_coexist *bt_coexist, bool force_exec, u8 type
 )
 {
-	bool bWifiUnderBMode =3D false;
+	bool wifi_under_b_mode =3D false;
=20
 	pCoexDm->curArfrType =3D type;
=20
-	if (bForceExec || (pCoexDm->preArfrType !=3D pCoexDm->curArfrType)) {
+	if (force_exec || (pCoexDm->preArfrType !=3D pCoexDm->curArfrType)) {
 		switch (pCoexDm->curArfrType) {
 		case 0:	/*  normal mode */
-			pBtCoexist->fBtcWrite4Byte(
-				pBtCoexist, 0x430, pCoexDm->backupArfrCnt1
+			bt_coexist->fBtcWrite4Byte(
+				bt_coexist, 0x430, pCoexDm->backupArfrCnt1
 			);
-			pBtCoexist->fBtcWrite4Byte(
-				pBtCoexist, 0x434, pCoexDm->backupArfrCnt2
+			bt_coexist->fBtcWrite4Byte(
+				bt_coexist, 0x434, pCoexDm->backupArfrCnt2
 			);
 			break;
 		case 1:
-			pBtCoexist->fBtcGet(
-				pBtCoexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &bWifiUnderBMode
+			bt_coexist->fBtcGet(
+				bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &wifi_under_b_mode
 			);
-			if (bWifiUnderBMode) {
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x430, 0x0);
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x434, 0x01010101);
+			if (wifi_under_b_mode) {
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x430, 0x0);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x434, 0x01010101);
 			} else {
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x430, 0x0);
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x434, 0x04030201);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x430, 0x0);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x434, 0x04030201);
 			}
 			break;
 		default:
@@ -129,23 +129,23 @@ static void halbtc8723b1ant_AutoRateFallbackRetry(
 }
=20
 static void halbtc8723b1ant_RetryLimit(
-	struct btc_coexist *pBtCoexist, bool bForceExec, u8 type
+	struct btc_coexist *bt_coexist, bool force_exec, u8 type
 )
 {
 	pCoexDm->curRetryLimitType =3D type;
=20
 	if (
-		bForceExec ||
+		force_exec ||
 		(pCoexDm->preRetryLimitType !=3D pCoexDm->curRetryLimitType)
 	) {
 		switch (pCoexDm->curRetryLimitType) {
 		case 0:	/*  normal mode */
-			pBtCoexist->fBtcWrite2Byte(
-				pBtCoexist, 0x42a, pCoexDm->backupRetryLimit
+			bt_coexist->fBtcWrite2Byte(
+				bt_coexist, 0x42a, pCoexDm->backupRetryLimit
 			);
 			break;
 		case 1:	/*  retry limit =3D8 */
-			pBtCoexist->fBtcWrite2Byte(pBtCoexist, 0x42a, 0x0808);
+			bt_coexist->fBtcWrite2Byte(bt_coexist, 0x42a, 0x0808);
 			break;
 		default:
 			break;
@@ -156,22 +156,22 @@ static void halbtc8723b1ant_RetryLimit(
 }
=20
 static void halbtc8723b1ant_AmpduMaxTime(
-	struct btc_coexist *pBtCoexist, bool bForceExec, u8 type
+	struct btc_coexist *bt_coexist, bool force_exec, u8 type
 )
 {
 	pCoexDm->curAmpduTimeType =3D type;
=20
 	if (
-		bForceExec || (pCoexDm->preAmpduTimeType !=3D pCoexDm->curAmpduTimeType)
+		force_exec || (pCoexDm->preAmpduTimeType !=3D pCoexDm->curAmpduTimeType)
 	) {
 		switch (pCoexDm->curAmpduTimeType) {
 		case 0:	/*  normal mode */
-			pBtCoexist->fBtcWrite1Byte(
-				pBtCoexist, 0x456, pCoexDm->backupAmpduMaxTime
+			bt_coexist->fBtcWrite1Byte(
+				bt_coexist, 0x456, pCoexDm->backupAmpduMaxTime
 			);
 			break;
 		case 1:	/*  AMPDU timw =3D 0x38 * 32us */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x456, 0x38);
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x456, 0x38);
 			break;
 		default:
 			break;
@@ -182,64 +182,64 @@ static void halbtc8723b1ant_AmpduMaxTime(
 }
=20
 static void halbtc8723b1ant_LimitedTx(
-	struct btc_coexist *pBtCoexist,
-	bool bForceExec,
-	u8 raMaskType,
-	u8 arfrType,
-	u8 retryLimitType,
-	u8 ampduTimeType
+	struct btc_coexist *bt_coexist,
+	bool force_exec,
+	u8 ra_mask_type,
+	u8 arfr_type,
+	u8 retry_limit_type,
+	u8 ampdu_time_type
 )
 {
-	switch (raMaskType) {
+	switch (ra_mask_type) {
 	case 0:	/*  normal mode */
-		halbtc8723b1ant_UpdateRaMask(pBtCoexist, bForceExec, 0x0);
+		halbtc8723b1ant_UpdateRaMask(bt_coexist, force_exec, 0x0);
 		break;
 	case 1:	/*  disable cck 1/2 */
-		halbtc8723b1ant_UpdateRaMask(pBtCoexist, bForceExec, 0x00000003);
+		halbtc8723b1ant_UpdateRaMask(bt_coexist, force_exec, 0x00000003);
 		break;
 	case 2:	/*  disable cck 1/2/5.5, ofdm 6/9/12/18/24, mcs 0/1/2/3/4 */
-		halbtc8723b1ant_UpdateRaMask(pBtCoexist, bForceExec, 0x0001f1f7);
+		halbtc8723b1ant_UpdateRaMask(bt_coexist, force_exec, 0x0001f1f7);
 		break;
 	default:
 		break;
 	}
=20
-	halbtc8723b1ant_AutoRateFallbackRetry(pBtCoexist, bForceExec, arfrType);
-	halbtc8723b1ant_RetryLimit(pBtCoexist, bForceExec, retryLimitType);
-	halbtc8723b1ant_AmpduMaxTime(pBtCoexist, bForceExec, ampduTimeType);
+	halbtc8723b1ant_AutoRateFallbackRetry(bt_coexist, force_exec, arfr_type);
+	halbtc8723b1ant_RetryLimit(bt_coexist, force_exec, retry_limit_type);
+	halbtc8723b1ant_AmpduMaxTime(bt_coexist, force_exec, ampdu_time_type);
 }
=20
 static void halbtc8723b1ant_LimitedRx(
-	struct btc_coexist *pBtCoexist,
-	bool bForceExec,
-	bool bRejApAggPkt,
-	bool bBtCtrlAggBufSize,
-	u8 aggBufSize
+	struct btc_coexist *bt_coexist,
+	bool force_exec,
+	bool rej_ap_agg_pkt,
+	bool bt_ctrl_agg_buf_size,
+	u8 agg_buf_size
 )
 {
-	bool bRejectRxAgg =3D bRejApAggPkt;
-	bool bBtCtrlRxAggSize =3D bBtCtrlAggBufSize;
-	u8 rxAggSize =3D aggBufSize;
+	bool bRejectRxAgg =3D rej_ap_agg_pkt;
+	bool bBtCtrlRxAggSize =3D bt_ctrl_agg_buf_size;
+	u8 rxAggSize =3D agg_buf_size;
=20
 	/*  */
 	/*	Rx Aggregation related setting */
 	/*  */
-	pBtCoexist->fBtcSet(
-		pBtCoexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, &bRejectRxAgg
+	bt_coexist->fBtcSet(
+		bt_coexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, &bRejectRxAgg
 	);
 	/*  decide BT control aggregation buf size or not */
-	pBtCoexist->fBtcSet(
-		pBtCoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, &bBtCtrlRxAggSize
+	bt_coexist->fBtcSet(
+		bt_coexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, &bBtCtrlRxAggSize
 	);
 	/*  aggregation buf size, only work when BT control Rx aggregation size. =
*/
-	pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_U1_AGG_BUF_SIZE, &rxAggSize);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_U1_AGG_BUF_SIZE, &rxAggSize);
 	/*  real update aggregation setting */
-	pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL);
=20
=20
 }
=20
-static void halbtc8723b1ant_QueryBtInfo(struct btc_coexist *pBtCoexist)
+static void halbtc8723b1ant_QueryBtInfo(struct btc_coexist *bt_coexist)
 {
 	u8 H2C_Parameter[1] =3D {0};
=20
@@ -247,17 +247,17 @@ static void halbtc8723b1ant_QueryBtInfo(struct btc_co=
exist *pBtCoexist)
=20
 	H2C_Parameter[0] |=3D BIT0;	/*  trigger */
=20
-	pBtCoexist->fBtcFillH2c(pBtCoexist, 0x61, 1, H2C_Parameter);
+	bt_coexist->fBtcFillH2c(bt_coexist, 0x61, 1, H2C_Parameter);
 }
=20
-static void halbtc8723b1ant_MonitorBtCtr(struct btc_coexist *pBtCoexist)
+static void halbtc8723b1ant_MonitorBtCtr(struct btc_coexist *bt_coexist)
 {
 	u32 regHPTxRx, regLPTxRx, u4Tmp;
 	u32 regHPTx =3D 0, regHPRx =3D 0, regLPTx =3D 0, regLPRx =3D 0;
 	static u8 NumOfBtCounterChk;
=20
        /* to avoid 0x76e[3] =3D 1 (WLAN_Act control by PTA) during IPS */
-	/* if (! (pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x76e) & 0x8)) */
+	/* if (! (bt_coexist->fBtcRead1Byte(bt_coexist, 0x76e) & 0x8)) */
=20
 	if (pCoexSta->bUnderIps) {
 		pCoexSta->highPriorityTx =3D 65535;
@@ -270,11 +270,11 @@ static void halbtc8723b1ant_MonitorBtCtr(struct btc_c=
oexist *pBtCoexist)
 	regHPTxRx =3D 0x770;
 	regLPTxRx =3D 0x774;
=20
-	u4Tmp =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, regHPTxRx);
+	u4Tmp =3D bt_coexist->fBtcRead4Byte(bt_coexist, regHPTxRx);
 	regHPTx =3D u4Tmp & bMaskLWord;
 	regHPRx =3D (u4Tmp & bMaskHWord) >> 16;
=20
-	u4Tmp =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, regLPTxRx);
+	u4Tmp =3D bt_coexist->fBtcRead4Byte(bt_coexist, regLPTxRx);
 	regLPTx =3D u4Tmp & bMaskLWord;
 	regLPRx =3D (u4Tmp & bMaskHWord) >> 16;
=20
@@ -287,28 +287,28 @@ static void halbtc8723b1ant_MonitorBtCtr(struct btc_c=
oexist *pBtCoexist)
 		pCoexSta->popEventCnt++;
=20
 	/*  reset counter */
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x76e, 0xc);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x76e, 0xc);
=20
 	if ((regHPTx =3D=3D 0) && (regHPRx =3D=3D 0) && (regLPTx =3D=3D 0) && (re=
gLPRx =3D=3D 0)) {
 		NumOfBtCounterChk++;
 		if (NumOfBtCounterChk >=3D 3) {
-			halbtc8723b1ant_QueryBtInfo(pBtCoexist);
+			halbtc8723b1ant_QueryBtInfo(bt_coexist);
 			NumOfBtCounterChk =3D 0;
 		}
 	}
 }
=20
=20
-static void halbtc8723b1ant_MonitorWiFiCtr(struct btc_coexist *pBtCoexist)
+static void halbtc8723b1ant_MonitorWiFiCtr(struct btc_coexist *bt_coexist)
 {
-	s32	wifiRssi =3D 0;
-	bool bWifiBusy =3D false, bWifiUnderBMode =3D false;
+	s32	wifi_rssi =3D 0;
+	bool wifi_busy =3D false, wifi_under_b_mode =3D false;
 	static u8 nCCKLockCounter;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_S4_WIFI_RSSI, &wifiRssi);
-	pBtCoexist->fBtcGet(
-		pBtCoexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &bWifiUnderBMode
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
+	bt_coexist->fBtcGet(
+		bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &wifi_under_b_mode
 	);
=20
 	if (pCoexSta->bUnderIps) {
@@ -322,23 +322,23 @@ static void halbtc8723b1ant_MonitorWiFiCtr(struct btc=
_coexist *pBtCoexist)
 		pCoexSta->nCRCErr_11n =3D 0;
 		pCoexSta->nCRCErr_11nAgg =3D 0;
 	} else {
-		pCoexSta->nCRCOK_CCK	=3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0xf88);
-		pCoexSta->nCRCOK_11g	=3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0xf94);
-		pCoexSta->nCRCOK_11n	=3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0xf90);
-		pCoexSta->nCRCOK_11nAgg =3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0xfb8);
+		pCoexSta->nCRCOK_CCK	=3D bt_coexist->fBtcRead4Byte(bt_coexist, 0xf88);
+		pCoexSta->nCRCOK_11g	=3D bt_coexist->fBtcRead2Byte(bt_coexist, 0xf94);
+		pCoexSta->nCRCOK_11n	=3D bt_coexist->fBtcRead2Byte(bt_coexist, 0xf90);
+		pCoexSta->nCRCOK_11nAgg =3D bt_coexist->fBtcRead2Byte(bt_coexist, 0xfb8);
=20
-		pCoexSta->nCRCErr_CCK	 =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0xf84);
-		pCoexSta->nCRCErr_11g	 =3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0xf96);
-		pCoexSta->nCRCErr_11n	 =3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0xf92);
-		pCoexSta->nCRCErr_11nAgg =3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0xfba=
);
+		pCoexSta->nCRCErr_CCK	 =3D bt_coexist->fBtcRead4Byte(bt_coexist, 0xf84);
+		pCoexSta->nCRCErr_11g	 =3D bt_coexist->fBtcRead2Byte(bt_coexist, 0xf96);
+		pCoexSta->nCRCErr_11n	 =3D bt_coexist->fBtcRead2Byte(bt_coexist, 0xf92);
+		pCoexSta->nCRCErr_11nAgg =3D bt_coexist->fBtcRead2Byte(bt_coexist, 0xfba=
);
 	}
=20
=20
 	/* reset counter */
-	pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0xf16, 0x1, 0x1);
-	pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0xf16, 0x1, 0x0);
+	bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0xf16, 0x1, 0x1);
+	bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0xf16, 0x1, 0x0);
=20
-	if (bWifiBusy && (wifiRssi >=3D 30) && !bWifiUnderBMode) {
+	if (wifi_busy && (wifi_rssi >=3D 30) && !wifi_under_b_mode) {
 		if (
 			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
 			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY) ||
@@ -385,24 +385,24 @@ static void halbtc8723b1ant_MonitorWiFiCtr(struct btc=
_coexist *pBtCoexist)
=20
 }
=20
-static bool halbtc8723b1ant_IsWifiStatusChanged(struct btc_coexist *pBtCoe=
xist)
+static bool halbtc8723b1ant_IsWifiStatusChanged(struct btc_coexist *bt_coe=
xist)
 {
 	static bool	bPreWifiBusy, bPreUnder4way, bPreBtHsOn;
-	bool bWifiBusy =3D false, bUnder4way =3D false, bBtHsOn =3D false;
+	bool wifi_busy =3D false, bUnder4way =3D false, bBtHsOn =3D false;
 	bool bWifiConnected =3D false;
=20
-	pBtCoexist->fBtcGet(
-		pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnected
+	bt_coexist->fBtcGet(
+		bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnected
 	);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
-	pBtCoexist->fBtcGet(
-		pBtCoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, &bUnder4way
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(
+		bt_coexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, &bUnder4way
 	);
=20
 	if (bWifiConnected) {
-		if (bWifiBusy !=3D bPreWifiBusy) {
-			bPreWifiBusy =3D bWifiBusy;
+		if (wifi_busy !=3D bPreWifiBusy) {
+			bPreWifiBusy =3D wifi_busy;
 			return true;
 		}
=20
@@ -420,12 +420,12 @@ static bool halbtc8723b1ant_IsWifiStatusChanged(struc=
t btc_coexist *pBtCoexist)
 	return false;
 }
=20
-static void halbtc8723b1ant_UpdateBtLinkInfo(struct btc_coexist *pBtCoexis=
t)
+static void halbtc8723b1ant_UpdateBtLinkInfo(struct btc_coexist *bt_coexis=
t)
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
 	bool bBtHsOn =3D false;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
=20
 	pBtLinkInfo->bBtLinkExist =3D pCoexSta->bBtLinkExist;
 	pBtLinkInfo->bScoExist =3D pCoexSta->bScoExist;
@@ -484,14 +484,14 @@ static void halbtc8723b1ant_UpdateBtLinkInfo(struct b=
tc_coexist *pBtCoexist)
 		pBtLinkInfo->bHidOnly =3D false;
 }
=20
-static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_coexist *pBtCoexist)
+static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_coexist *bt_coexist)
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
 	bool bBtHsOn =3D false;
 	u8 algorithm =3D BT_8723B_1ANT_COEX_ALGO_UNDEFINED;
 	u8 numOfDiffProfile =3D 0;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
=20
 	if (!pBtLinkInfo->bBtLinkExist)
 		return algorithm;
@@ -594,7 +594,7 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_co=
exist *pBtCoexist)
 }
=20
 static void halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(
-	struct btc_coexist *pBtCoexist, bool bLowPenaltyRa
+	struct btc_coexist *bt_coexist, bool bLowPenaltyRa
 )
 {
 	u8 H2C_Parameter[6] =3D {0};
@@ -609,46 +609,46 @@ static void halbtc8723b1ant_SetSwPenaltyTxRateAdaptiv=
e(
 		H2C_Parameter[5] =3D 0xf9;	/* MCS5 or OFDM36 */
 	}
=20
-	pBtCoexist->fBtcFillH2c(pBtCoexist, 0x69, 6, H2C_Parameter);
+	bt_coexist->fBtcFillH2c(bt_coexist, 0x69, 6, H2C_Parameter);
 }
=20
 static void halbtc8723b1ant_LowPenaltyRa(
-	struct btc_coexist *pBtCoexist, bool bForceExec, bool bLowPenaltyRa
+	struct btc_coexist *bt_coexist, bool force_exec, bool bLowPenaltyRa
 )
 {
 	pCoexDm->bCurLowPenaltyRa =3D bLowPenaltyRa;
=20
-	if (!bForceExec) {
+	if (!force_exec) {
 		if (pCoexDm->bPreLowPenaltyRa =3D=3D pCoexDm->bCurLowPenaltyRa)
 			return;
 	}
 	halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(
-		pBtCoexist, pCoexDm->bCurLowPenaltyRa
+		bt_coexist, pCoexDm->bCurLowPenaltyRa
 	);
=20
 	pCoexDm->bPreLowPenaltyRa =3D pCoexDm->bCurLowPenaltyRa;
 }
=20
 static void halbtc8723b1ant_SetCoexTable(
-	struct btc_coexist *pBtCoexist,
+	struct btc_coexist *bt_coexist,
 	u32 val0x6c0,
 	u32 val0x6c4,
 	u32 val0x6c8,
 	u8 val0x6cc
 )
 {
-	pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x6c0, val0x6c0);
+	bt_coexist->fBtcWrite4Byte(bt_coexist, 0x6c0, val0x6c0);
=20
-	pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x6c4, val0x6c4);
+	bt_coexist->fBtcWrite4Byte(bt_coexist, 0x6c4, val0x6c4);
=20
-	pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x6c8, val0x6c8);
+	bt_coexist->fBtcWrite4Byte(bt_coexist, 0x6c8, val0x6c8);
=20
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cc, val0x6cc);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cc, val0x6cc);
 }
=20
 static void halbtc8723b1ant_CoexTable(
-	struct btc_coexist *pBtCoexist,
-	bool bForceExec,
+	struct btc_coexist *bt_coexist,
+	bool force_exec,
 	u32 val0x6c0,
 	u32 val0x6c4,
 	u32 val0x6c8,
@@ -660,7 +660,7 @@ static void halbtc8723b1ant_CoexTable(
 	pCoexDm->curVal0x6c8 =3D val0x6c8;
 	pCoexDm->curVal0x6cc =3D val0x6cc;
=20
-	if (!bForceExec) {
+	if (!force_exec) {
 		if (
 			(pCoexDm->preVal0x6c0 =3D=3D pCoexDm->curVal0x6c0) &&
 		    (pCoexDm->preVal0x6c4 =3D=3D pCoexDm->curVal0x6c4) &&
@@ -671,7 +671,7 @@ static void halbtc8723b1ant_CoexTable(
 	}
=20
 	halbtc8723b1ant_SetCoexTable(
-		pBtCoexist, val0x6c0, val0x6c4, val0x6c8, val0x6cc
+		bt_coexist, val0x6c0, val0x6c4, val0x6c8, val0x6cc
 	);
=20
 	pCoexDm->preVal0x6c0 =3D pCoexDm->curVal0x6c0;
@@ -681,7 +681,7 @@ static void halbtc8723b1ant_CoexTable(
 }
=20
 static void halbtc8723b1ant_CoexTableWithType(
-	struct btc_coexist *pBtCoexist, bool bForceExec, u8 type
+	struct btc_coexist *bt_coexist, bool force_exec, u8 type
 )
 {
 	pCoexSta->nCoexTableType =3D type;
@@ -689,42 +689,42 @@ static void halbtc8723b1ant_CoexTableWithType(
 	switch (type) {
 	case 0:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0x55555555, 0x55555555, 0xffffff, 0x3
+			bt_coexist, force_exec, 0x55555555, 0x55555555, 0xffffff, 0x3
 		);
 		break;
 	case 1:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0x55555555, 0x5a5a5a5a, 0xffffff, 0x3
+			bt_coexist, force_exec, 0x55555555, 0x5a5a5a5a, 0xffffff, 0x3
 		);
 		break;
 	case 2:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0x5a5a5a5a, 0x5a5a5a5a, 0xffffff, 0x3
+			bt_coexist, force_exec, 0x5a5a5a5a, 0x5a5a5a5a, 0xffffff, 0x3
 		);
 		break;
 	case 3:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0xaaaa5555, 0xaaaa5a5a, 0xffffff, 0x3
+			bt_coexist, force_exec, 0xaaaa5555, 0xaaaa5a5a, 0xffffff, 0x3
 		);
 		break;
 	case 4:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0x55555555, 0xaaaa5a5a, 0xffffff, 0x3
+			bt_coexist, force_exec, 0x55555555, 0xaaaa5a5a, 0xffffff, 0x3
 		);
 		break;
 	case 5:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0x5a5a5a5a, 0xaaaa5a5a, 0xffffff, 0x3
+			bt_coexist, force_exec, 0x5a5a5a5a, 0xaaaa5a5a, 0xffffff, 0x3
 		);
 		break;
 	case 6:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0x55555555, 0xaaaaaaaa, 0xffffff, 0x3
+			bt_coexist, force_exec, 0x55555555, 0xaaaaaaaa, 0xffffff, 0x3
 		);
 		break;
 	case 7:
 		halbtc8723b1ant_CoexTable(
-			pBtCoexist, bForceExec, 0xaaaaaaaa, 0xaaaaaaaa, 0xffffff, 0x3
+			bt_coexist, force_exec, 0xaaaaaaaa, 0xaaaaaaaa, 0xffffff, 0x3
 		);
 		break;
 	default:
@@ -733,7 +733,7 @@ static void halbtc8723b1ant_CoexTableWithType(
 }
=20
 static void halbtc8723b1ant_SetFwIgnoreWlanAct(
-	struct btc_coexist *pBtCoexist, bool bEnable
+	struct btc_coexist *bt_coexist, bool bEnable
 )
 {
 	u8 H2C_Parameter[1] =3D {0};
@@ -741,43 +741,43 @@ static void halbtc8723b1ant_SetFwIgnoreWlanAct(
 	if (bEnable)
 		H2C_Parameter[0] |=3D BIT0; /* function enable */
=20
-	pBtCoexist->fBtcFillH2c(pBtCoexist, 0x63, 1, H2C_Parameter);
+	bt_coexist->fBtcFillH2c(bt_coexist, 0x63, 1, H2C_Parameter);
 }
=20
 static void halbtc8723b1ant_IgnoreWlanAct(
-	struct btc_coexist *pBtCoexist, bool bForceExec, bool bEnable
+	struct btc_coexist *bt_coexist, bool force_exec, bool bEnable
 )
 {
 	pCoexDm->bCurIgnoreWlanAct =3D bEnable;
=20
-	if (!bForceExec) {
+	if (!force_exec) {
 		if (pCoexDm->bPreIgnoreWlanAct =3D=3D pCoexDm->bCurIgnoreWlanAct)
 			return;
 	}
-	halbtc8723b1ant_SetFwIgnoreWlanAct(pBtCoexist, bEnable);
+	halbtc8723b1ant_SetFwIgnoreWlanAct(bt_coexist, bEnable);
=20
 	pCoexDm->bPreIgnoreWlanAct =3D pCoexDm->bCurIgnoreWlanAct;
 }
=20
 static void halbtc8723b1ant_SetLpsRpwm(
-	struct btc_coexist *pBtCoexist, u8 lpsVal, u8 rpwmVal
+	struct btc_coexist *bt_coexist, u8 lpsVal, u8 rpwmVal
 )
 {
 	u8 lps =3D lpsVal;
 	u8 rpwm =3D rpwmVal;
=20
-	pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_U1_LPS_VAL, &lps);
-	pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_U1_RPWM_VAL, &rpwm);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_U1_LPS_VAL, &lps);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_U1_RPWM_VAL, &rpwm);
 }
=20
 static void halbtc8723b1ant_LpsRpwm(
-	struct btc_coexist *pBtCoexist, bool bForceExec, u8 lpsVal, u8 rpwmVal
+	struct btc_coexist *bt_coexist, bool force_exec, u8 lpsVal, u8 rpwmVal
 )
 {
 	pCoexDm->curLps =3D lpsVal;
 	pCoexDm->curRpwm =3D rpwmVal;
=20
-	if (!bForceExec) {
+	if (!force_exec) {
 		if (
 			(pCoexDm->preLps =3D=3D pCoexDm->curLps) &&
 			(pCoexDm->preRpwm =3D=3D pCoexDm->curRpwm)
@@ -785,89 +785,89 @@ static void halbtc8723b1ant_LpsRpwm(
 			return;
 		}
 	}
-	halbtc8723b1ant_SetLpsRpwm(pBtCoexist, lpsVal, rpwmVal);
+	halbtc8723b1ant_SetLpsRpwm(bt_coexist, lpsVal, rpwmVal);
=20
 	pCoexDm->preLps =3D pCoexDm->curLps;
 	pCoexDm->preRpwm =3D pCoexDm->curRpwm;
 }
=20
 static void halbtc8723b1ant_SwMechanism(
-	struct btc_coexist *pBtCoexist, bool bLowPenaltyRA
+	struct btc_coexist *bt_coexist, bool bLowPenaltyRA
 )
 {
-	halbtc8723b1ant_LowPenaltyRa(pBtCoexist, NORMAL_EXEC, bLowPenaltyRA);
+	halbtc8723b1ant_LowPenaltyRa(bt_coexist, NORMAL_EXEC, bLowPenaltyRA);
 }
=20
 static void halbtc8723b1ant_SetAntPath(
-	struct btc_coexist *pBtCoexist, u8 antPosType, bool bInitHwCfg, bool bWif=
iOff
+	struct btc_coexist *bt_coexist, u8 antPosType, bool bInitHwCfg, bool bWif=
iOff
 )
 {
-	struct btc_board_info *pBoardInfo =3D &pBtCoexist->boardInfo;
+	struct btc_board_info *pBoardInfo =3D &bt_coexist->boardInfo;
 	u32 fwVer =3D 0, u4Tmp =3D 0, cntBtCalChk =3D 0;
 	bool bPgExtSwitch =3D false;
 	bool bUseExtSwitch =3D false;
 	bool bIsInMpMode =3D false;
 	u8 H2C_Parameter[2] =3D {0}, u1Tmp =3D 0;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_EXT_SWITCH, &bPgExtSwitch);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_FW_VER, &fwVer); /*  [31:=
16]=3Dfw ver, [15:0]=3Dfw sub ver */
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_EXT_SWITCH, &bPgExtSwitch);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_WIFI_FW_VER, &fwVer); /*  [31:=
16]=3Dfw ver, [15:0]=3Dfw sub ver */
=20
 	if ((fwVer > 0 && fwVer < 0xc0000) || bPgExtSwitch)
 		bUseExtSwitch =3D true;
=20
 	if (bInitHwCfg) {
-		pBtCoexist->fBtcSetRfReg(pBtCoexist, BTC_RF_A, 0x1, 0xfffff, 0x780); /* =
WiFi TRx Mask on */
-		pBtCoexist->fBtcSetBtReg(pBtCoexist, BTC_BT_REG_RF, 0x3c, 0x15); /* BT T=
Rx Mask on */
+		bt_coexist->fBtcSetRfReg(bt_coexist, BTC_RF_A, 0x1, 0xfffff, 0x780); /* =
WiFi TRx Mask on */
+		bt_coexist->fBtcSetBtReg(bt_coexist, BTC_BT_REG_RF, 0x3c, 0x15); /* BT T=
Rx Mask on */
=20
 		if (fwVer >=3D 0x180000) {
 			/* Use H2C to set GNT_BT to HIGH */
 			H2C_Parameter[0] =3D 1;
-			pBtCoexist->fBtcFillH2c(pBtCoexist, 0x6E, 1, H2C_Parameter);
+			bt_coexist->fBtcFillH2c(bt_coexist, 0x6E, 1, H2C_Parameter);
 		} else /*  set grant_bt to high */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x765, 0x18);
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x765, 0x18);
=20
 		/* set wlan_act control by PTA */
-		pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x76e, 0x4);
+		bt_coexist->fBtcWrite1Byte(bt_coexist, 0x76e, 0x4);
=20
-		pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x67, 0x20, 0x1); /* BT se=
lect s0/s1 is controlled by WiFi */
+		bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x67, 0x20, 0x1); /* BT se=
lect s0/s1 is controlled by WiFi */
=20
-		pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x39, 0x8, 0x1);
-		pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x974, 0xff);
-		pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x944, 0x3, 0x3);
-		pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x930, 0x77);
+		bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x39, 0x8, 0x1);
+		bt_coexist->fBtcWrite1Byte(bt_coexist, 0x974, 0xff);
+		bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x944, 0x3, 0x3);
+		bt_coexist->fBtcWrite1Byte(bt_coexist, 0x930, 0x77);
 	} else if (bWifiOff) {
 		if (fwVer >=3D 0x180000) {
 			/* Use H2C to set GNT_BT to HIGH */
 			H2C_Parameter[0] =3D 1;
-			pBtCoexist->fBtcFillH2c(pBtCoexist, 0x6E, 1, H2C_Parameter);
+			bt_coexist->fBtcFillH2c(bt_coexist, 0x6E, 1, H2C_Parameter);
 		} else /*  set grant_bt to high */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x765, 0x18);
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x765, 0x18);
=20
 		/* set wlan_act to always low */
-		pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x76e, 0x4);
+		bt_coexist->fBtcWrite1Byte(bt_coexist, 0x76e, 0x4);
=20
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_IS_IN_MP_MODE, &bIsInMpM=
ode);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_IS_IN_MP_MODE, &bIsInMpM=
ode);
 		if (!bIsInMpMode)
-			pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x67, 0x20, 0x0); /* BT s=
elect s0/s1 is controlled by BT */
+			bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x67, 0x20, 0x0); /* BT s=
elect s0/s1 is controlled by BT */
 		else
-			pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x67, 0x20, 0x1); /* BT s=
elect s0/s1 is controlled by WiFi */
+			bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x67, 0x20, 0x1); /* BT s=
elect s0/s1 is controlled by WiFi */
=20
 		/*  0x4c[24:23]=3D 00, Set Antenna control by BT_RFE_CTRL	BT Vendor 0xac=
 =3D 0xf002 */
-		u4Tmp =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x4c);
+		u4Tmp =3D bt_coexist->fBtcRead4Byte(bt_coexist, 0x4c);
 		u4Tmp &=3D ~BIT23;
 		u4Tmp &=3D ~BIT24;
-		pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x4c, u4Tmp);
+		bt_coexist->fBtcWrite4Byte(bt_coexist, 0x4c, u4Tmp);
 	} else {
 		/* Use H2C to set GNT_BT to LOW */
 		if (fwVer >=3D 0x180000) {
-			if (pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x765) !=3D 0) {
+			if (bt_coexist->fBtcRead1Byte(bt_coexist, 0x765) !=3D 0) {
 				H2C_Parameter[0] =3D 0;
-				pBtCoexist->fBtcFillH2c(pBtCoexist, 0x6E, 1, H2C_Parameter);
+				bt_coexist->fBtcFillH2c(bt_coexist, 0x6E, 1, H2C_Parameter);
 			}
 		} else {
 			/*  BT calibration check */
 			while (cntBtCalChk <=3D 20) {
-				u1Tmp =3D pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x49d);
+				u1Tmp =3D bt_coexist->fBtcRead1Byte(bt_coexist, 0x49d);
 				cntBtCalChk++;
=20
 				if (u1Tmp & BIT0)
@@ -877,34 +877,34 @@ static void halbtc8723b1ant_SetAntPath(
 			}
=20
 			/*  set grant_bt to PTA */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x765, 0x0);
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x765, 0x0);
 		}
=20
-		if (pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x76e) !=3D 0xc)
+		if (bt_coexist->fBtcRead1Byte(bt_coexist, 0x76e) !=3D 0xc)
 			/* set wlan_act control by PTA */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x76e, 0xc);
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x76e, 0xc);
 	}
=20
 	if (bUseExtSwitch) {
 		if (bInitHwCfg) {
 			/*  0x4c[23]=3D 0, 0x4c[24]=3D 1  Antenna control by WL/BT */
-			u4Tmp =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x4c);
+			u4Tmp =3D bt_coexist->fBtcRead4Byte(bt_coexist, 0x4c);
 			u4Tmp &=3D ~BIT23;
 			u4Tmp |=3D BIT24;
-			pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x4c, u4Tmp);
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x4c, u4Tmp);
=20
-			pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x0); /*  fixed internal =
switch S1->WiFi, S0->BT */
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x0); /*  fixed internal =
switch S1->WiFi, S0->BT */
=20
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT) {
 				/* tell firmware "no antenna inverse" */
 				H2C_Parameter[0] =3D 0;
 				H2C_Parameter[1] =3D 1;  /* ext switch type */
-				pBtCoexist->fBtcFillH2c(pBtCoexist, 0x65, 2, H2C_Parameter);
+				bt_coexist->fBtcFillH2c(bt_coexist, 0x65, 2, H2C_Parameter);
 			} else {
 				/* tell firmware "antenna inverse" */
 				H2C_Parameter[0] =3D 1;
 				H2C_Parameter[1] =3D 1;  /* ext switch type */
-				pBtCoexist->fBtcFillH2c(pBtCoexist, 0x65, 2, H2C_Parameter);
+				bt_coexist->fBtcFillH2c(bt_coexist, 0x65, 2, H2C_Parameter);
 			}
 		}
=20
@@ -913,48 +913,48 @@ static void halbtc8723b1ant_SetAntPath(
 		switch (antPosType) {
 		case BTC_ANT_PATH_WIFI:
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT)
-				pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x92c, 0x3, 0x1);
+				bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x92c, 0x3, 0x1);
 			else
-				pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x92c, 0x3, 0x2);
+				bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x92c, 0x3, 0x2);
 			break;
 		case BTC_ANT_PATH_BT:
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT)
-				pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x92c, 0x3, 0x2);
+				bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x92c, 0x3, 0x2);
 			else
-				pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x92c, 0x3, 0x1);
+				bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x92c, 0x3, 0x1);
 			break;
 		default:
 		case BTC_ANT_PATH_PTA:
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT)
-				pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x92c, 0x3, 0x1);
+				bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x92c, 0x3, 0x1);
 			else
-				pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x92c, 0x3, 0x2);
+				bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x92c, 0x3, 0x2);
 			break;
 		}
=20
 	} else {
 		if (bInitHwCfg) {
 			/*  0x4c[23]=3D 1, 0x4c[24]=3D 0  Antenna control by 0x64 */
-			u4Tmp =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x4c);
+			u4Tmp =3D bt_coexist->fBtcRead4Byte(bt_coexist, 0x4c);
 			u4Tmp |=3D BIT23;
 			u4Tmp &=3D ~BIT24;
-			pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x4c, u4Tmp);
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x4c, u4Tmp);
=20
 			/* Fix Ext switch Main->S1, Aux->S0 */
-			pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x64, 0x1, 0x0);
+			bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x64, 0x1, 0x0);
=20
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT) {
=20
 				/* tell firmware "no antenna inverse" */
 				H2C_Parameter[0] =3D 0;
 				H2C_Parameter[1] =3D 0;  /* internal switch type */
-				pBtCoexist->fBtcFillH2c(pBtCoexist, 0x65, 2, H2C_Parameter);
+				bt_coexist->fBtcFillH2c(bt_coexist, 0x65, 2, H2C_Parameter);
 			} else {
=20
 				/* tell firmware "antenna inverse" */
 				H2C_Parameter[0] =3D 1;
 				H2C_Parameter[1] =3D 0;  /* internal switch type */
-				pBtCoexist->fBtcFillH2c(pBtCoexist, 0x65, 2, H2C_Parameter);
+				bt_coexist->fBtcFillH2c(bt_coexist, 0x65, 2, H2C_Parameter);
 			}
 		}
=20
@@ -963,36 +963,36 @@ static void halbtc8723b1ant_SetAntPath(
 		switch (antPosType) {
 		case BTC_ANT_PATH_WIFI:
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT)
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x0);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x0);
 			else
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x280);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x280);
 			break;
 		case BTC_ANT_PATH_BT:
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT)
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x280);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x280);
 			else
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x0);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x0);
 			break;
 		default:
 		case BTC_ANT_PATH_PTA:
 			if (pBoardInfo->btdmAntPos =3D=3D BTC_ANTENNA_AT_MAIN_PORT)
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x200);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x200);
 			else
-				pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x80);
+				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x80);
 			break;
 		}
 	}
 }
=20
 static void halbtc8723b1ant_SetFwPstdma(
-	struct btc_coexist *pBtCoexist, u8 byte1, u8 byte2, u8 byte3, u8 byte4, u=
8 byte5
+	struct btc_coexist *bt_coexist, u8 byte1, u8 byte2, u8 byte3, u8 byte4, u=
8 byte5
 )
 {
 	u8 H2C_Parameter[5] =3D {0};
 	u8 realByte1 =3D byte1, realByte5 =3D byte5;
 	bool bApEnable =3D false;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, &bApEnabl=
e);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, &bApEnabl=
e);
=20
 	if (bApEnable) {
 		if (byte1 & BIT4 && !(byte1 & BIT5)) {
@@ -1016,16 +1016,16 @@ static void halbtc8723b1ant_SetFwPstdma(
 	pCoexDm->psTdmaPara[3] =3D byte4;
 	pCoexDm->psTdmaPara[4] =3D realByte5;
=20
-	pBtCoexist->fBtcFillH2c(pBtCoexist, 0x60, 5, H2C_Parameter);
+	bt_coexist->fBtcFillH2c(bt_coexist, 0x60, 5, H2C_Parameter);
 }
=20
=20
 static void halbtc8723b1ant_PsTdma(
-	struct btc_coexist *pBtCoexist, bool bForceExec, bool bTurnOn, u8 type
+	struct btc_coexist *bt_coexist, bool force_exec, bool bTurnOn, u8 type
 )
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
-	bool bWifiBusy =3D false;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
+	bool wifi_busy =3D false;
 	u8 rssiAdjustVal =3D 0;
 	u8 psTdmaByte4Val =3D 0x50, psTdmaByte0Val =3D 0x51, psTdmaByte3Val =3D  =
0x10;
 	s8 nWiFiDurationAdjust =3D 0x0;
@@ -1034,9 +1034,9 @@ static void halbtc8723b1ant_PsTdma(
 	pCoexDm->bCurPsTdmaOn =3D bTurnOn;
 	pCoexDm->curPsTdma =3D type;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
=20
-	if (!bForceExec) {
+	if (!force_exec) {
 		if (
 			(pCoexDm->bPrePsTdmaOn =3D=3D pCoexDm->bCurPsTdmaOn) &&
 			(pCoexDm->prePsTdma =3D=3D pCoexDm->curPsTdma)
@@ -1066,12 +1066,12 @@ static void halbtc8723b1ant_PsTdma(
 		switch (type) {
 		default:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x51, 0x1a, 0x1a, 0x0, psTdmaByte4Val
+				bt_coexist, 0x51, 0x1a, 0x1a, 0x0, psTdmaByte4Val
 			);
 			break;
 		case 1:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist,
+				bt_coexist,
 				psTdmaByte0Val,
 				0x3a + nWiFiDurationAdjust,
 				0x03,
@@ -1081,7 +1081,7 @@ static void halbtc8723b1ant_PsTdma(
 			break;
 		case 2:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist,
+				bt_coexist,
 				psTdmaByte0Val,
 				0x2d + nWiFiDurationAdjust,
 				0x03,
@@ -1091,35 +1091,35 @@ static void halbtc8723b1ant_PsTdma(
 			break;
 		case 3:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x51, 0x1d, 0x1d, 0x0, 0x10
+				bt_coexist, 0x51, 0x1d, 0x1d, 0x0, 0x10
 			);
 			break;
 		case 4:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x93, 0x15, 0x3, 0x14, 0x0
+				bt_coexist, 0x93, 0x15, 0x3, 0x14, 0x0
 			);
 			break;
 		case 5:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x61, 0x15, 0x3, 0x11, 0x10
+				bt_coexist, 0x61, 0x15, 0x3, 0x11, 0x10
 			);
 			break;
 		case 6:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x61, 0x20, 0x3, 0x11, 0x11
+				bt_coexist, 0x61, 0x20, 0x3, 0x11, 0x11
 			);
 			break;
 		case 7:
-			halbtc8723b1ant_SetFwPstdma(pBtCoexist, 0x13, 0xc, 0x5, 0x0, 0x0);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x13, 0xc, 0x5, 0x0, 0x0);
 			break;
 		case 8:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x93, 0x25, 0x3, 0x10, 0x0
+				bt_coexist, 0x93, 0x25, 0x3, 0x10, 0x0
 			);
 			break;
 		case 9:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist,
+				bt_coexist,
 				psTdmaByte0Val,
 				0x21,
 				0x3,
@@ -1128,11 +1128,11 @@ static void halbtc8723b1ant_PsTdma(
 			);
 			break;
 		case 10:
-			halbtc8723b1ant_SetFwPstdma(pBtCoexist, 0x13, 0xa, 0xa, 0x0, 0x40);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x13, 0xa, 0xa, 0x0, 0x40);
 			break;
 		case 11:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist,
+				bt_coexist,
 				psTdmaByte0Val,
 				0x21,
 				0x03,
@@ -1142,124 +1142,124 @@ static void halbtc8723b1ant_PsTdma(
 			break;
 		case 12:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x51, 0x0a, 0x0a, 0x0, 0x50
+				bt_coexist, 0x51, 0x0a, 0x0a, 0x0, 0x50
 			);
 			break;
 		case 13:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x51, 0x12, 0x12, 0x0, 0x10
+				bt_coexist, 0x51, 0x12, 0x12, 0x0, 0x10
 			);
 			break;
 		case 14:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x51, 0x21, 0x3, 0x10, psTdmaByte4Val
+				bt_coexist, 0x51, 0x21, 0x3, 0x10, psTdmaByte4Val
 			);
 			break;
 		case 15:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x13, 0xa, 0x3, 0x8, 0x0
+				bt_coexist, 0x13, 0xa, 0x3, 0x8, 0x0
 			);
 			break;
 		case 16:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x93, 0x15, 0x3, 0x10, 0x0
+				bt_coexist, 0x93, 0x15, 0x3, 0x10, 0x0
 			);
 			break;
 		case 18:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x93, 0x25, 0x3, 0x10, 0x0
+				bt_coexist, 0x93, 0x25, 0x3, 0x10, 0x0
 			);
 			break;
 		case 20:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x61, 0x3f, 0x03, 0x11, 0x10
+				bt_coexist, 0x61, 0x3f, 0x03, 0x11, 0x10
=20
 			);
 			break;
 		case 21:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x61, 0x25, 0x03, 0x11, 0x11
+				bt_coexist, 0x61, 0x25, 0x03, 0x11, 0x11
 			);
 			break;
 		case 22:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x61, 0x25, 0x03, 0x11, 0x10
+				bt_coexist, 0x61, 0x25, 0x03, 0x11, 0x10
 			);
 			break;
 		case 23:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xe3, 0x25, 0x3, 0x31, 0x18
+				bt_coexist, 0xe3, 0x25, 0x3, 0x31, 0x18
 			);
 			break;
 		case 24:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xe3, 0x15, 0x3, 0x31, 0x18
+				bt_coexist, 0xe3, 0x15, 0x3, 0x31, 0x18
 			);
 			break;
 		case 25:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xe3, 0xa, 0x3, 0x31, 0x18
+				bt_coexist, 0xe3, 0xa, 0x3, 0x31, 0x18
 			);
 			break;
 		case 26:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xe3, 0xa, 0x3, 0x31, 0x18
+				bt_coexist, 0xe3, 0xa, 0x3, 0x31, 0x18
 			);
 			break;
 		case 27:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xe3, 0x25, 0x3, 0x31, 0x98
+				bt_coexist, 0xe3, 0x25, 0x3, 0x31, 0x98
 			);
 			break;
 		case 28:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x69, 0x25, 0x3, 0x31, 0x0
+				bt_coexist, 0x69, 0x25, 0x3, 0x31, 0x0
 			);
 			break;
 		case 29:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xab, 0x1a, 0x1a, 0x1, 0x10
+				bt_coexist, 0xab, 0x1a, 0x1a, 0x1, 0x10
 			);
 			break;
 		case 30:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x51, 0x30, 0x3, 0x10, 0x10
+				bt_coexist, 0x51, 0x30, 0x3, 0x10, 0x10
 			);
 			break;
 		case 31:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xd3, 0x1a, 0x1a, 0x0, 0x58
+				bt_coexist, 0xd3, 0x1a, 0x1a, 0x0, 0x58
 			);
 			break;
 		case 32:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x61, 0x35, 0x3, 0x11, 0x11
+				bt_coexist, 0x61, 0x35, 0x3, 0x11, 0x11
 			);
 			break;
 		case 33:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xa3, 0x25, 0x3, 0x30, 0x90
+				bt_coexist, 0xa3, 0x25, 0x3, 0x30, 0x90
 			);
 			break;
 		case 34:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x53, 0x1a, 0x1a, 0x0, 0x10
+				bt_coexist, 0x53, 0x1a, 0x1a, 0x0, 0x10
 			);
 			break;
 		case 35:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x63, 0x1a, 0x1a, 0x0, 0x10
+				bt_coexist, 0x63, 0x1a, 0x1a, 0x0, 0x10
 			);
 			break;
 		case 36:
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0xd3, 0x12, 0x3, 0x14, 0x50
+				bt_coexist, 0xd3, 0x12, 0x3, 0x14, 0x50
 			);
 			break;
 		case 40: /*  SoftAP only with no sta associated, BT disable , TDMA mode =
for power saving */
 			/* here softap mode screen off will cost 70-80mA for phone */
 			halbtc8723b1ant_SetFwPstdma(
-				pBtCoexist, 0x23, 0x18, 0x00, 0x10, 0x24
+				bt_coexist, 0x23, 0x18, 0x00, 0x10, 0x24
 			);
 			break;
 		}
@@ -1268,30 +1268,30 @@ static void halbtc8723b1ant_PsTdma(
 		/*  disable PS tdma */
 		switch (type) {
 		case 8: /* PTA Control */
-			halbtc8723b1ant_SetFwPstdma(pBtCoexist, 0x8, 0x0, 0x0, 0x0, 0x0);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x8, 0x0, 0x0, 0x0, 0x0);
 			halbtc8723b1ant_SetAntPath(
-				pBtCoexist, BTC_ANT_PATH_PTA, false, false
+				bt_coexist, BTC_ANT_PATH_PTA, false, false
 			);
 			break;
 		case 0:
 		default:  /* Software control, Antenna at BT side */
-			halbtc8723b1ant_SetFwPstdma(pBtCoexist, 0x0, 0x0, 0x0, 0x0, 0x0);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x0, 0x0, 0x0, 0x0, 0x0);
 			halbtc8723b1ant_SetAntPath(
-				pBtCoexist, BTC_ANT_PATH_BT, false, false
+				bt_coexist, BTC_ANT_PATH_BT, false, false
 			);
 			break;
 		case 9:   /* Software control, Antenna at WiFi side */
-			halbtc8723b1ant_SetFwPstdma(pBtCoexist, 0x0, 0x0, 0x0, 0x0, 0x0);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x0, 0x0, 0x0, 0x0, 0x0);
 			halbtc8723b1ant_SetAntPath(
-				pBtCoexist, BTC_ANT_PATH_WIFI, false, false
+				bt_coexist, BTC_ANT_PATH_WIFI, false, false
 			);
 			break;
 		}
 	}
=20
 	rssiAdjustVal =3D 0;
-	pBtCoexist->fBtcSet(
-		pBtCoexist, BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE, &rssiAdjustVal
+	bt_coexist->fBtcSet(
+		bt_coexist, BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE, &rssiAdjustVal
 	);
=20
 	/*  update pre state */
@@ -1299,46 +1299,46 @@ static void halbtc8723b1ant_PsTdma(
 	pCoexDm->prePsTdma =3D pCoexDm->curPsTdma;
 }
=20
-static bool halbtc8723b1ant_IsCommonAction(struct btc_coexist *pBtCoexist)
+static bool halbtc8723b1ant_IsCommonAction(struct btc_coexist *bt_coexist)
 {
-	bool bCommon =3D false, bWifiConnected =3D false, bWifiBusy =3D false;
+	bool bCommon =3D false, bWifiConnected =3D false, wifi_busy =3D false;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
=20
 	if (
 		!bWifiConnected &&
 		pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE
 	) {
-		/* halbtc8723b1ant_SwMechanism(pBtCoexist, false); */
+		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
 	} else if (
 		bWifiConnected &&
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE)
 	) {
-		/* halbtc8723b1ant_SwMechanism(pBtCoexist, false); */
+		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
 	} else if (
 		!bWifiConnected &&
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
 	) {
-		/* halbtc8723b1ant_SwMechanism(pBtCoexist, false); */
+		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
 	} else if (
 		bWifiConnected &&
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
 	) {
-		/* halbtc8723b1ant_SwMechanism(pBtCoexist, false); */
+		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
 	} else if (
 		!bWifiConnected &&
 		(pCoexDm->btStatus !=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
 	) {
-		/* halbtc8723b1ant_SwMechanism(pBtCoexist, false); */
+		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
 	} else {
@@ -1350,7 +1350,7 @@ static bool halbtc8723b1ant_IsCommonAction(struct btc=
_coexist *pBtCoexist)
=20
=20
 static void halbtc8723b1ant_TdmaDurationAdjustForAcl(
-	struct btc_coexist *pBtCoexist, u8 wifiStatus
+	struct btc_coexist *bt_coexist, u8 wifiStatus
 )
 {
 	static s32 up, dn, m, n, WaitCount;
@@ -1368,7 +1368,7 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAcl(
 			pCoexDm->curPsTdma !=3D 3 &&
 			pCoexDm->curPsTdma !=3D 9
 		) {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 			pCoexDm->psTdmaDuAdjType =3D 9;
=20
 			up =3D 0;
@@ -1384,7 +1384,7 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAcl(
 	if (!pCoexDm->bAutoTdmaAdjust) {
 		pCoexDm->bAutoTdmaAdjust =3D true;
=20
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 2);
 		pCoexDm->psTdmaDuAdjType =3D 2;
 		/*  */
 		up =3D 0;
@@ -1461,16 +1461,16 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAc=
l(
 				BT_INFO_8723B_1ANT_A2DP_BASIC_RATE(btInfoExt) &&
 				((pCoexDm->curPsTdma =3D=3D 1) || (pCoexDm->curPsTdma =3D=3D 2))
 			) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 				pCoexDm->psTdmaDuAdjType =3D 9;
 			} else if (pCoexDm->curPsTdma =3D=3D 1) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 2);
 				pCoexDm->psTdmaDuAdjType =3D 2;
 			} else if (pCoexDm->curPsTdma =3D=3D 2) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 				pCoexDm->psTdmaDuAdjType =3D 9;
 			} else if (pCoexDm->curPsTdma =3D=3D 9) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 11);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 11);
 				pCoexDm->psTdmaDuAdjType =3D 11;
 			}
 		} else if (result =3D=3D 1) {
@@ -1478,16 +1478,16 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAc=
l(
 				BT_INFO_8723B_1ANT_A2DP_BASIC_RATE(btInfoExt) &&
 				((pCoexDm->curPsTdma =3D=3D 1) || (pCoexDm->curPsTdma =3D=3D 2))
 			) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 				pCoexDm->psTdmaDuAdjType =3D 9;
 			} else if (pCoexDm->curPsTdma =3D=3D 11) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 9);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 				pCoexDm->psTdmaDuAdjType =3D 9;
 			} else if (pCoexDm->curPsTdma =3D=3D 9) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 2);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 2);
 				pCoexDm->psTdmaDuAdjType =3D 2;
 			} else if (pCoexDm->curPsTdma =3D=3D 2) {
-				halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 1);
+				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 1);
 				pCoexDm->psTdmaDuAdjType =3D 1;
 			}
 		}
@@ -1499,27 +1499,27 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAc=
l(
 			pCoexDm->curPsTdma !=3D 11
 		) /*  recover to previous adjust type */
 			halbtc8723b1ant_PsTdma(
-				pBtCoexist, NORMAL_EXEC, true, pCoexDm->psTdmaDuAdjType
+				bt_coexist, NORMAL_EXEC, true, pCoexDm->psTdmaDuAdjType
 			);
 	}
 }
=20
 static void halbtc8723b1ant_PsTdmaCheckForPowerSaveState(
-	struct btc_coexist *pBtCoexist, bool bNewPsState
+	struct btc_coexist *bt_coexist, bool bNewPsState
 )
 {
 	u8 lpsMode =3D 0x0;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_LPS_MODE, &lpsMode);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_U1_LPS_MODE, &lpsMode);
=20
 	if (lpsMode) {	/*  already under LPS state */
 		if (bNewPsState) {
 			/*  keep state under LPS, do nothing. */
 		} else /*  will leave LPS state, turn off psTdma first */
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 0);
 	} else {						/*  NO PS state */
 		if (bNewPsState) /*  will enter LPS state, turn off psTdma first */
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 0);
 		else {
 			/*  keep state under NO PS state, do nothing. */
 		}
@@ -1527,7 +1527,7 @@ static void halbtc8723b1ant_PsTdmaCheckForPowerSaveSt=
ate(
 }
=20
 static void halbtc8723b1ant_PowerSaveState(
-	struct btc_coexist *pBtCoexist, u8 psType, u8 lpsVal, u8 rpwmVal
+	struct btc_coexist *bt_coexist, u8 psType, u8 lpsVal, u8 rpwmVal
 )
 {
 	bool bLowPwrDisable =3D false;
@@ -1536,27 +1536,27 @@ static void halbtc8723b1ant_PowerSaveState(
 	case BTC_PS_WIFI_NATIVE:
 		/*  recover to original 32k low power setting */
 		bLowPwrDisable =3D false;
-		pBtCoexist->fBtcSet(
-			pBtCoexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwrDisable
+		bt_coexist->fBtcSet(
+			bt_coexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwrDisable
 		);
-		pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_ACT_NORMAL_LPS, NULL);
+		bt_coexist->fBtcSet(bt_coexist, BTC_SET_ACT_NORMAL_LPS, NULL);
 		pCoexSta->bForceLpsOn =3D false;
 		break;
 	case BTC_PS_LPS_ON:
-		halbtc8723b1ant_PsTdmaCheckForPowerSaveState(pBtCoexist, true);
-		halbtc8723b1ant_LpsRpwm(pBtCoexist, NORMAL_EXEC, lpsVal, rpwmVal);
+		halbtc8723b1ant_PsTdmaCheckForPowerSaveState(bt_coexist, true);
+		halbtc8723b1ant_LpsRpwm(bt_coexist, NORMAL_EXEC, lpsVal, rpwmVal);
 		/*  when coex force to enter LPS, do not enter 32k low power. */
 		bLowPwrDisable =3D true;
-		pBtCoexist->fBtcSet(
-			pBtCoexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwrDisable
+		bt_coexist->fBtcSet(
+			bt_coexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwrDisable
 		);
 		/*  power save must executed before psTdma. */
-		pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_ACT_ENTER_LPS, NULL);
+		bt_coexist->fBtcSet(bt_coexist, BTC_SET_ACT_ENTER_LPS, NULL);
 		pCoexSta->bForceLpsOn =3D true;
 		break;
 	case BTC_PS_LPS_OFF:
-		halbtc8723b1ant_PsTdmaCheckForPowerSaveState(pBtCoexist, false);
-		pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_ACT_LEAVE_LPS, NULL);
+		halbtc8723b1ant_PsTdmaCheckForPowerSaveState(bt_coexist, false);
+		bt_coexist->fBtcSet(bt_coexist, BTC_SET_ACT_LEAVE_LPS, NULL);
 		pCoexSta->bForceLpsOn =3D false;
 		break;
 	default:
@@ -1575,86 +1575,86 @@ static void halbtc8723b1ant_PowerSaveState(
 /*	Non-Software Coex Mechanism start */
 /*  */
 /*  */
-static void halbtc8723b1ant_ActionWifiMultiPort(struct btc_coexist *pBtCoe=
xist)
+static void halbtc8723b1ant_ActionWifiMultiPort(struct btc_coexist *bt_coe=
xist)
 {
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
-	halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
-	halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+	halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
+	halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 }
=20
-static void halbtc8723b1ant_ActionHs(struct btc_coexist *pBtCoexist)
+static void halbtc8723b1ant_ActionHs(struct btc_coexist *bt_coexist)
 {
-	halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 5);
-	halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+	halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 5);
+	halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 }
=20
-static void halbtc8723b1ant_ActionBtInquiry(struct btc_coexist *pBtCoexist)
+static void halbtc8723b1ant_ActionBtInquiry(struct btc_coexist *bt_coexist)
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
 	bool bWifiConnected =3D false;
 	bool bApEnable =3D false;
-	bool bWifiBusy =3D false;
+	bool wifi_busy =3D false;
 	bool bBtBusy =3D false;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, &bApEnabl=
e);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
-	pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bBtBusy);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, &bApEnabl=
e);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bBtBusy);
=20
 	if (!bWifiConnected && !pCoexSta->bWiFiIsHighPriTask) {
-		halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
+		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
=20
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 0);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 0);
 	} else if (
 		pBtLinkInfo->bScoExist ||
 		pBtLinkInfo->bHidExist ||
 		pBtLinkInfo->bA2dpExist
 	) {
 		/*  SCO/HID/A2DP busy */
-		halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
+		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
=20
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
-	} else if (pBtLinkInfo->bPanExist || bWifiBusy) {
-		halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 20);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
+	} else if (pBtLinkInfo->bPanExist || wifi_busy) {
+		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
=20
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 	} else {
-		halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
+		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
=20
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 7);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 7);
 	}
 }
=20
 static void halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-	struct btc_coexist *pBtCoexist, u8 wifiStatus
+	struct btc_coexist *bt_coexist, u8 wifiStatus
 )
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
 	bool bWifiConnected =3D false;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
=20
 	/*  tdma and coex table */
=20
 	if (pBtLinkInfo->bScoExist) {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 5);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 5);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 5);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 5);
 	} else { /* HID */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 6);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 5);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 6);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 5);
 	}
 }
=20
 static void halbtc8723b1ant_ActionWifiConnectedBtAclBusy(
-	struct btc_coexist *pBtCoexist, u8 wifiStatus
+	struct btc_coexist *bt_coexist, u8 wifiStatus
 )
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
 	halbtc8723b1ant_BtRssiState(2, 28, 0);
=20
@@ -1664,97 +1664,97 @@ static void halbtc8723b1ant_ActionWifiConnectedBtAc=
lBusy(
 		pBtLinkInfo->bSlaveRole =3D false;
=20
 	if (pBtLinkInfo->bHidOnly) { /* HID */
-		halbtc8723b1ant_ActionBtScoHidOnlyBusy(pBtCoexist, wifiStatus);
+		halbtc8723b1ant_ActionBtScoHidOnlyBusy(bt_coexist, wifiStatus);
 		pCoexDm->bAutoTdmaAdjust =3D false;
 		return;
 	} else if (pBtLinkInfo->bA2dpOnly) { /* A2DP */
 		if (wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_CONNECTED_IDLE) {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 			pCoexDm->bAutoTdmaAdjust =3D false;
 		} else {
-			halbtc8723b1ant_TdmaDurationAdjustForAcl(pBtCoexist, wifiStatus);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_TdmaDurationAdjustForAcl(bt_coexist, wifiStatus);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 			pCoexDm->bAutoTdmaAdjust =3D true;
 		}
 	} else if (pBtLinkInfo->bHidExist && pBtLinkInfo->bA2dpExist) { /* HID+A2=
DP */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 14);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 14);
 		pCoexDm->bAutoTdmaAdjust =3D false;
=20
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 	} else if (
 		pBtLinkInfo->bPanOnly ||
 		(pBtLinkInfo->bHidExist && pBtLinkInfo->bPanExist)
 	) { /* PAN(OPP, FTP), HID+PAN(OPP, FTP) */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 3);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 3);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		pCoexDm->bAutoTdmaAdjust =3D false;
 	} else if (
 		(pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanExist) ||
 		(pBtLinkInfo->bHidExist && pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanE=
xist)
 	) { /* A2DP+PAN(OPP, FTP), HID+A2DP+PAN(OPP, FTP) */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 13);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 13);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		pCoexDm->bAutoTdmaAdjust =3D false;
 	} else {
 		/* BT no-profile busy (0x9) */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		pCoexDm->bAutoTdmaAdjust =3D false;
 	}
 }
=20
-static void halbtc8723b1ant_ActionWifiNotConnected(struct btc_coexist *pBt=
Coexist)
+static void halbtc8723b1ant_ActionWifiNotConnected(struct btc_coexist *bt_=
coexist)
 {
 	/*  power save state */
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
-	halbtc8723b1ant_PsTdma(pBtCoexist, FORCE_EXEC, false, 8);
-	halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 0);
+	halbtc8723b1ant_PsTdma(bt_coexist, FORCE_EXEC, false, 8);
+	halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 0);
 }
=20
 static void halbtc8723b1ant_ActionWifiNotConnectedScan(
-	struct btc_coexist *pBtCoexist
+	struct btc_coexist *bt_coexist
 )
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
 	if (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) {
 		if (pBtLinkInfo->bA2dpExist) {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		} else if (pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanExist) {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 22);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 22);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		} else {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 20);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		}
 	} else if (
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 	) {
 		halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-			pBtCoexist, BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
+			bt_coexist, BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
 		);
 	} else {
 		/* Bryant Add */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 	}
 }
=20
 static void halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(
-	struct btc_coexist *pBtCoexist
+	struct btc_coexist *bt_coexist
 )
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
 	if (
@@ -1762,56 +1762,56 @@ static void halbtc8723b1ant_ActionWifiNotConnectedA=
ssoAuth(
 		(pBtLinkInfo->bHidExist) ||
 		(pBtLinkInfo->bA2dpExist)
 	) {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 	} else if (pBtLinkInfo->bPanExist) {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 20);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 	} else {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 	}
 }
=20
-static void halbtc8723b1ant_ActionWifiConnectedScan(struct btc_coexist *pB=
tCoexist)
+static void halbtc8723b1ant_ActionWifiConnectedScan(struct btc_coexist *bt=
_coexist)
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
 	if (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) {
 		if (pBtLinkInfo->bA2dpExist) {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		} else if (pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanExist) {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 22);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 22);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		} else {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 20);
-			halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
+			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		}
 	} else if (
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
 		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 	) {
 		halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-			pBtCoexist, BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
+			bt_coexist, BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
 		);
 	} else {
 		/* Bryant Add */
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 	}
 }
=20
 static void halbtc8723b1ant_ActionWifiConnectedSpecialPacket(
-	struct btc_coexist *pBtCoexist
+	struct btc_coexist *bt_coexist
 )
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
 	if (
@@ -1819,62 +1819,62 @@ static void halbtc8723b1ant_ActionWifiConnectedSpec=
ialPacket(
 		(pBtLinkInfo->bHidExist) ||
 		(pBtLinkInfo->bA2dpExist)
 	) {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 32);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 	} else if (pBtLinkInfo->bPanExist) {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 20);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 4);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 	} else {
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 	}
 }
=20
-static void halbtc8723b1ant_ActionWifiConnected(struct btc_coexist *pBtCoe=
xist)
+static void halbtc8723b1ant_ActionWifiConnected(struct btc_coexist *bt_coe=
xist)
 {
-	bool bWifiBusy =3D false;
+	bool wifi_busy =3D false;
 	bool bScan =3D false, bLink =3D false, bRoam =3D false;
 	bool bUnder4way =3D false, bApEnable =3D false;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, &bUnder4w=
ay);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, &bUnder4w=
ay);
 	if (bUnder4way) {
-		halbtc8723b1ant_ActionWifiConnectedSpecialPacket(pBtCoexist);
+		halbtc8723b1ant_ActionWifiConnectedSpecialPacket(bt_coexist);
 		return;
 	}
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_SCAN, &bScan);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_LINK, &bLink);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_ROAM, &bRoam);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_SCAN, &bScan);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_LINK, &bLink);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_ROAM, &bRoam);
 	if (bScan || bLink || bRoam) {
 		if (bScan)
-			halbtc8723b1ant_ActionWifiConnectedScan(pBtCoexist);
+			halbtc8723b1ant_ActionWifiConnectedScan(bt_coexist);
 		else
-			halbtc8723b1ant_ActionWifiConnectedSpecialPacket(pBtCoexist);
+			halbtc8723b1ant_ActionWifiConnectedSpecialPacket(bt_coexist);
 		return;
 	}
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, &bApEnabl=
e);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, &bApEnabl=
e);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
=20
 	/*  power save state */
 	if (
 		!bApEnable &&
 		pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY &&
-		!pBtCoexist->btLinkInfo.bHidOnly
+		!bt_coexist->btLinkInfo.bHidOnly
 	) {
-		if (pBtCoexist->btLinkInfo.bA2dpOnly) { /* A2DP */
-			if (!bWifiBusy)
+		if (bt_coexist->btLinkInfo.bA2dpOnly) { /* A2DP */
+			if (!wifi_busy)
 				halbtc8723b1ant_PowerSaveState(
-					pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0
+					bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0
 				);
 			else { /* busy */
 				if  (pCoexSta->nScanAPNum >=3D BT_8723B_1ANT_WIFI_NOISY_THRESH)  /* no=
 force LPS, no PS-TDMA, use pure TDMA */
 					halbtc8723b1ant_PowerSaveState(
-						pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0
+						bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0
 					);
 				else
 					halbtc8723b1ant_PowerSaveState(
-						pBtCoexist, BTC_PS_LPS_ON, 0x50, 0x4
+						bt_coexist, BTC_PS_LPS_ON, 0x50, 0x4
 					);
 			}
 		} else if (
@@ -1882,37 +1882,37 @@ static void halbtc8723b1ant_ActionWifiConnected(str=
uct btc_coexist *pBtCoexist)
 			(!pCoexSta->bA2dpExist) &&
 			(!pCoexSta->bHidExist)
 		)
-			halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0=
);
+			halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0=
);
 		else
-			halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_LPS_ON, 0x50, 0x4);
+			halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_LPS_ON, 0x50, 0x4);
 	} else
-		halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
-	if (!bWifiBusy) {
+	if (!wifi_busy) {
 		if (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) {
 			halbtc8723b1ant_ActionWifiConnectedBtAclBusy(
-				pBtCoexist,
+				bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_IDLE
 			);
 		} else if (
 			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
 			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 		) {
-			halbtc8723b1ant_ActionBtScoHidOnlyBusy(pBtCoexist,
+			halbtc8723b1ant_ActionBtScoHidOnlyBusy(bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_IDLE);
 		} else {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
=20
 			if ((pCoexSta->highPriorityTx) + (pCoexSta->highPriorityRx) <=3D 60)
-				halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+				halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 			else
-				halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 7);
+				halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 7);
 		}
 	} else {
 		if (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) {
 			halbtc8723b1ant_ActionWifiConnectedBtAclBusy(
-				pBtCoexist,
+				bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY
 			);
 		} else if (
@@ -1920,60 +1920,60 @@ static void halbtc8723b1ant_ActionWifiConnected(str=
uct btc_coexist *pBtCoexist)
 			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 		) {
 			halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-				pBtCoexist,
+				bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY
 			);
 		} else {
-			halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 8);
+			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
=20
 			if ((pCoexSta->highPriorityTx) + (pCoexSta->highPriorityRx) <=3D 60)
-				halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
+				halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
 			else
-				halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 7);
+				halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 7);
 		}
 	}
 }
=20
-static void halbtc8723b1ant_RunSwCoexistMechanism(struct btc_coexist *pBtC=
oexist)
+static void halbtc8723b1ant_RunSwCoexistMechanism(struct btc_coexist *bt_c=
oexist)
 {
 	u8 algorithm =3D 0;
=20
-	algorithm =3D halbtc8723b1ant_ActionAlgorithm(pBtCoexist);
+	algorithm =3D halbtc8723b1ant_ActionAlgorithm(bt_coexist);
 	pCoexDm->curAlgorithm =3D algorithm;
=20
-	if (halbtc8723b1ant_IsCommonAction(pBtCoexist)) {
+	if (halbtc8723b1ant_IsCommonAction(bt_coexist)) {
=20
 	} else {
 		switch (pCoexDm->curAlgorithm) {
 		case BT_8723B_1ANT_COEX_ALGO_SCO:
-			/* halbtc8723b1ant_ActionSco(pBtCoexist); */
+			/* halbtc8723b1ant_ActionSco(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_HID:
-			/* halbtc8723b1ant_ActionHid(pBtCoexist); */
+			/* halbtc8723b1ant_ActionHid(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_A2DP:
-			/* halbtc8723b1ant_ActionA2dp(pBtCoexist); */
+			/* halbtc8723b1ant_ActionA2dp(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_A2DP_PANHS:
-			/* halbtc8723b1ant_ActionA2dpPanHs(pBtCoexist); */
+			/* halbtc8723b1ant_ActionA2dpPanHs(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_PANEDR:
-			/* halbtc8723b1ant_ActionPanEdr(pBtCoexist); */
+			/* halbtc8723b1ant_ActionPanEdr(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_PANHS:
-			/* halbtc8723b1ant_ActionPanHs(pBtCoexist); */
+			/* halbtc8723b1ant_ActionPanHs(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_PANEDR_A2DP:
-			/* halbtc8723b1ant_ActionPanEdrA2dp(pBtCoexist); */
+			/* halbtc8723b1ant_ActionPanEdrA2dp(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_PANEDR_HID:
-			/* halbtc8723b1ant_ActionPanEdrHid(pBtCoexist); */
+			/* halbtc8723b1ant_ActionPanEdrHid(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_HID_A2DP_PANEDR:
-			/* halbtc8723b1ant_ActionHidA2dpPanEdr(pBtCoexist); */
+			/* halbtc8723b1ant_ActionHidA2dpPanEdr(bt_coexist); */
 			break;
 		case BT_8723B_1ANT_COEX_ALGO_HID_A2DP:
-			/* halbtc8723b1ant_ActionHidA2dp(pBtCoexist); */
+			/* halbtc8723b1ant_ActionHidA2dp(bt_coexist); */
 			break;
 		default:
 			break;
@@ -1982,20 +1982,20 @@ static void halbtc8723b1ant_RunSwCoexistMechanism(s=
truct btc_coexist *pBtCoexist
 	}
 }
=20
-static void halbtc8723b1ant_RunCoexistMechanism(struct btc_coexist *pBtCoe=
xist)
+static void halbtc8723b1ant_RunCoexistMechanism(struct btc_coexist *bt_coe=
xist)
 {
-	struct btc_bt_link_info *pBtLinkInfo =3D &pBtCoexist->btLinkInfo;
+	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
 	bool bWifiConnected =3D false, bBtHsOn =3D false;
 	bool bIncreaseScanDevNum =3D false;
-	bool bBtCtrlAggBufSize =3D false;
-	u8 aggBufSize =3D 5;
+	bool bt_ctrl_agg_buf_size =3D false;
+	u8 agg_buf_size =3D 5;
 	u32 wifiLinkStatus =3D 0;
 	u32 numOfWifiLink =3D 0;
=20
-	if (pBtCoexist->bManualControl)
+	if (bt_coexist->bManualControl)
 		return;
=20
-	if (pBtCoexist->bStopCoexDm)
+	if (bt_coexist->bStopCoexDm)
 		return;
=20
 	if (pCoexSta->bUnderIps)
@@ -2009,61 +2009,61 @@ static void halbtc8723b1ant_RunCoexistMechanism(str=
uct btc_coexist *pBtCoexist)
 		bIncreaseScanDevNum =3D true;
 	}
=20
-	pBtCoexist->fBtcSet(
-		pBtCoexist,
+	bt_coexist->fBtcSet(
+		bt_coexist,
 		BTC_SET_BL_INC_SCAN_DEV_NUM,
 		&bIncreaseScanDevNum
 	);
-	pBtCoexist->fBtcGet(
-		pBtCoexist,
+	bt_coexist->fBtcGet(
+		bt_coexist,
 		BTC_GET_BL_WIFI_CONNECTED,
 		&bWifiConnected
 	);
=20
-	pBtCoexist->fBtcGet(
-		pBtCoexist,
+	bt_coexist->fBtcGet(
+		bt_coexist,
 		BTC_GET_U4_WIFI_LINK_STATUS,
 		&wifiLinkStatus
 	);
 	numOfWifiLink =3D wifiLinkStatus >> 16;
=20
 	if ((numOfWifiLink >=3D 2) || (wifiLinkStatus & WIFI_P2P_GO_CONNECTED)) {
-		halbtc8723b1ant_LimitedTx(pBtCoexist, NORMAL_EXEC, 0, 0, 0, 0);
-		halbtc8723b1ant_LimitedRx(pBtCoexist, NORMAL_EXEC, false, bBtCtrlAggBufS=
ize, aggBufSize);
+		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
+		halbtc8723b1ant_LimitedRx(bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_bu=
f_size, agg_buf_size);
=20
 		if ((pBtLinkInfo->bA2dpExist) && (pCoexSta->bC2hBtInquiryPage))
-			halbtc8723b1ant_ActionBtInquiry(pBtCoexist);
+			halbtc8723b1ant_ActionBtInquiry(bt_coexist);
 		else
-			halbtc8723b1ant_ActionWifiMultiPort(pBtCoexist);
+			halbtc8723b1ant_ActionWifiMultiPort(bt_coexist);
=20
 		return;
 	}
=20
 	if ((pBtLinkInfo->bBtLinkExist) && (bWifiConnected)) {
-		halbtc8723b1ant_LimitedTx(pBtCoexist, NORMAL_EXEC, 1, 1, 0, 1);
+		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 1, 1, 0, 1);
=20
 		if (pBtLinkInfo->bScoExist)
-			halbtc8723b1ant_LimitedRx(pBtCoexist, NORMAL_EXEC, false, true, 0x5);
+			halbtc8723b1ant_LimitedRx(bt_coexist, NORMAL_EXEC, false, true, 0x5);
 		else
-			halbtc8723b1ant_LimitedRx(pBtCoexist, NORMAL_EXEC, false, true, 0x8);
+			halbtc8723b1ant_LimitedRx(bt_coexist, NORMAL_EXEC, false, true, 0x8);
=20
-		halbtc8723b1ant_SwMechanism(pBtCoexist, true);
-		halbtc8723b1ant_RunSwCoexistMechanism(pBtCoexist);  /* just print debug =
message */
+		halbtc8723b1ant_SwMechanism(bt_coexist, true);
+		halbtc8723b1ant_RunSwCoexistMechanism(bt_coexist);  /* just print debug =
message */
 	} else {
-		halbtc8723b1ant_LimitedTx(pBtCoexist, NORMAL_EXEC, 0, 0, 0, 0);
+		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
=20
-		halbtc8723b1ant_LimitedRx(pBtCoexist, NORMAL_EXEC, false, false, 0x5);
+		halbtc8723b1ant_LimitedRx(bt_coexist, NORMAL_EXEC, false, false, 0x5);
=20
-		halbtc8723b1ant_SwMechanism(pBtCoexist, false);
-		halbtc8723b1ant_RunSwCoexistMechanism(pBtCoexist); /* just print debug m=
essage */
+		halbtc8723b1ant_SwMechanism(bt_coexist, false);
+		halbtc8723b1ant_RunSwCoexistMechanism(bt_coexist); /* just print debug m=
essage */
 	}
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
 	if (pCoexSta->bC2hBtInquiryPage) {
-		halbtc8723b1ant_ActionBtInquiry(pBtCoexist);
+		halbtc8723b1ant_ActionBtInquiry(bt_coexist);
 		return;
 	} else if (bBtHsOn) {
-		halbtc8723b1ant_ActionHs(pBtCoexist);
+		halbtc8723b1ant_ActionHs(bt_coexist);
 		return;
 	}
=20
@@ -2071,62 +2071,62 @@ static void halbtc8723b1ant_RunCoexistMechanism(str=
uct btc_coexist *pBtCoexist)
 	if (!bWifiConnected) {
 		bool bScan =3D false, bLink =3D false, bRoam =3D false;
=20
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_SCAN, &bScan);
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_LINK, &bLink);
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_ROAM, &bRoam);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_SCAN, &bScan);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_LINK, &bLink);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_ROAM, &bRoam);
=20
 		if (bScan || bLink || bRoam) {
 			if (bScan)
-				halbtc8723b1ant_ActionWifiNotConnectedScan(pBtCoexist);
+				halbtc8723b1ant_ActionWifiNotConnectedScan(bt_coexist);
 			else
-				halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(pBtCoexist);
+				halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(bt_coexist);
 		} else
-			halbtc8723b1ant_ActionWifiNotConnected(pBtCoexist);
+			halbtc8723b1ant_ActionWifiNotConnected(bt_coexist);
 	} else /*  wifi LPS/Busy */
-		halbtc8723b1ant_ActionWifiConnected(pBtCoexist);
+		halbtc8723b1ant_ActionWifiConnected(bt_coexist);
 }
=20
-static void halbtc8723b1ant_InitCoexDm(struct btc_coexist *pBtCoexist)
+static void halbtc8723b1ant_InitCoexDm(struct btc_coexist *bt_coexist)
 {
 	/*  force to reset coex mechanism */
=20
 	/*  sw all off */
-	halbtc8723b1ant_SwMechanism(pBtCoexist, false);
+	halbtc8723b1ant_SwMechanism(bt_coexist, false);
=20
-	/* halbtc8723b1ant_PsTdma(pBtCoexist, FORCE_EXEC, false, 8); */
-	halbtc8723b1ant_CoexTableWithType(pBtCoexist, FORCE_EXEC, 0);
+	/* halbtc8723b1ant_PsTdma(bt_coexist, FORCE_EXEC, false, 8); */
+	halbtc8723b1ant_CoexTableWithType(bt_coexist, FORCE_EXEC, 0);
=20
 	pCoexSta->popEventCnt =3D 0;
 }
=20
 static void halbtc8723b1ant_InitHwConfig(
-	struct btc_coexist *pBtCoexist,
+	struct btc_coexist *bt_coexist,
 	bool bBackUp,
 	bool bWifiOnly
 )
 {
-	pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x550, 0x8, 0x1);  /* enabl=
e TBTT nterrupt */
+	bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x550, 0x8, 0x1);  /* enabl=
e TBTT nterrupt */
=20
 	/*  0x790[5:0]=3D 0x5 */
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x790, 0x5);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x790, 0x5);
=20
 	/*  Enable counter statistics */
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x778, 0x1);
-	pBtCoexist->fBtcWrite1ByteBitMask(pBtCoexist, 0x40, 0x20, 0x1);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x778, 0x1);
+	bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x40, 0x20, 0x1);
=20
 	/* Antenna config */
 	if (bWifiOnly) {
-		halbtc8723b1ant_SetAntPath(pBtCoexist, BTC_ANT_PATH_WIFI, true, false);
-		halbtc8723b1ant_PsTdma(pBtCoexist, FORCE_EXEC, false, 9);
+		halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_WIFI, true, false);
+		halbtc8723b1ant_PsTdma(bt_coexist, FORCE_EXEC, false, 9);
 	} else
-		halbtc8723b1ant_SetAntPath(pBtCoexist, BTC_ANT_PATH_BT, true, false);
+		halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_BT, true, false);
=20
 	/*  PTA parameter */
-	halbtc8723b1ant_CoexTableWithType(pBtCoexist, FORCE_EXEC, 0);
+	halbtc8723b1ant_CoexTableWithType(bt_coexist, FORCE_EXEC, 0);
=20
-	pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x948);
-	pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x765);
-	pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x67);
+	bt_coexist->fBtcRead4Byte(bt_coexist, 0x948);
+	bt_coexist->fBtcRead1Byte(bt_coexist, 0x765);
+	bt_coexist->fBtcRead1Byte(bt_coexist, 0x67);
 }
=20
 /*  */
@@ -2135,22 +2135,22 @@ static void halbtc8723b1ant_InitHwConfig(
 /*  */
 /*  extern function start with EXhalbtc8723b1ant_ */
 /*  */
-void EXhalbtc8723b1ant_PowerOnSetting(struct btc_coexist *pBtCoexist)
+void EXhalbtc8723b1ant_PowerOnSetting(struct btc_coexist *bt_coexist)
 {
-	struct btc_board_info *pBoardInfo =3D &pBtCoexist->boardInfo;
+	struct btc_board_info *pBoardInfo =3D &bt_coexist->boardInfo;
 	u8 u1Tmp =3D 0x0;
 	u16 u2Tmp =3D 0x0;
=20
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x67, 0x20);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x67, 0x20);
=20
 	/*  enable BB, REG_SYS_FUNC_EN such that we can write 0x948 correctly. */
-	u2Tmp =3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0x2);
-	pBtCoexist->fBtcWrite2Byte(pBtCoexist, 0x2, u2Tmp | BIT0 | BIT1);
+	u2Tmp =3D bt_coexist->fBtcRead2Byte(bt_coexist, 0x2);
+	bt_coexist->fBtcWrite2Byte(bt_coexist, 0x2, u2Tmp | BIT0 | BIT1);
=20
 	/*  set GRAN_BT =3D 1 */
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x765, 0x18);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x765, 0x18);
 	/*  set WLAN_ACT =3D 0 */
-	pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x76e, 0x4);
+	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x76e, 0x4);
=20
 	/*  */
 	/*  S0 or S1 setting and Local register setting(By the setting fw can get=
 ant number, S0/S1, ... info) */
@@ -2159,71 +2159,71 @@ void EXhalbtc8723b1ant_PowerOnSetting(struct btc_co=
exist *pBtCoexist)
 	/*	BIT1: "0" for internal switch; "1" for external switch */
 	/*	BIT2: "0" for one antenna; "1" for two antenna */
 	/*  NOTE: here default all internal switch and 1-antenna =3D=3D> BIT1 =3D=
 0 and BIT2 =3D 0 */
-	if (pBtCoexist->chipInterface =3D=3D BTC_INTF_USB) {
+	if (bt_coexist->chipInterface =3D=3D BTC_INTF_USB) {
 		/*  fixed at S0 for USB interface */
-		pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x0);
+		bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x0);
=20
 		u1Tmp |=3D 0x1;	/*  antenna inverse */
-		pBtCoexist->fBtcWriteLocalReg1Byte(pBtCoexist, 0xfe08, u1Tmp);
+		bt_coexist->fBtcWriteLocalReg1Byte(bt_coexist, 0xfe08, u1Tmp);
=20
 		pBoardInfo->btdmAntPos =3D BTC_ANTENNA_AT_AUX_PORT;
 	} else {
 		/*  for PCIE and SDIO interface, we check efuse 0xc3[6] */
 		if (pBoardInfo->singleAntPath =3D=3D 0) {
 			/*  set to S1 */
-			pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x280);
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x280);
 			pBoardInfo->btdmAntPos =3D BTC_ANTENNA_AT_MAIN_PORT;
 		} else if (pBoardInfo->singleAntPath =3D=3D 1) {
 			/*  set to S0 */
-			pBtCoexist->fBtcWrite4Byte(pBtCoexist, 0x948, 0x0);
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x948, 0x0);
 			u1Tmp |=3D 0x1;	/*  antenna inverse */
 			pBoardInfo->btdmAntPos =3D BTC_ANTENNA_AT_AUX_PORT;
 		}
=20
-		if (pBtCoexist->chipInterface =3D=3D BTC_INTF_PCI)
-			pBtCoexist->fBtcWriteLocalReg1Byte(pBtCoexist, 0x384, u1Tmp);
-		else if (pBtCoexist->chipInterface =3D=3D BTC_INTF_SDIO)
-			pBtCoexist->fBtcWriteLocalReg1Byte(pBtCoexist, 0x60, u1Tmp);
+		if (bt_coexist->chipInterface =3D=3D BTC_INTF_PCI)
+			bt_coexist->fBtcWriteLocalReg1Byte(bt_coexist, 0x384, u1Tmp);
+		else if (bt_coexist->chipInterface =3D=3D BTC_INTF_SDIO)
+			bt_coexist->fBtcWriteLocalReg1Byte(bt_coexist, 0x60, u1Tmp);
 	}
 }
=20
-void EXhalbtc8723b1ant_InitHwConfig(struct btc_coexist *pBtCoexist, bool b=
WifiOnly)
+void EXhalbtc8723b1ant_InitHwConfig(struct btc_coexist *bt_coexist, bool b=
WifiOnly)
 {
-	halbtc8723b1ant_InitHwConfig(pBtCoexist, true, bWifiOnly);
+	halbtc8723b1ant_InitHwConfig(bt_coexist, true, bWifiOnly);
 }
=20
-void EXhalbtc8723b1ant_InitCoexDm(struct btc_coexist *pBtCoexist)
+void EXhalbtc8723b1ant_InitCoexDm(struct btc_coexist *bt_coexist)
 {
-	pBtCoexist->bStopCoexDm =3D false;
+	bt_coexist->bStopCoexDm =3D false;
=20
-	halbtc8723b1ant_InitCoexDm(pBtCoexist);
+	halbtc8723b1ant_InitCoexDm(bt_coexist);
=20
-	halbtc8723b1ant_QueryBtInfo(pBtCoexist);
+	halbtc8723b1ant_QueryBtInfo(bt_coexist);
 }
=20
-void EXhalbtc8723b1ant_IpsNotify(struct btc_coexist *pBtCoexist, u8 type)
+void EXhalbtc8723b1ant_IpsNotify(struct btc_coexist *bt_coexist, u8 type)
 {
-	if (pBtCoexist->bManualControl ||	pBtCoexist->bStopCoexDm)
+	if (bt_coexist->bManualControl ||	bt_coexist->bStopCoexDm)
 		return;
=20
 	if (type =3D=3D BTC_IPS_ENTER) {
 		pCoexSta->bUnderIps =3D true;
=20
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 0);
-		halbtc8723b1ant_SetAntPath(pBtCoexist, BTC_ANT_PATH_BT, false, true);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 0);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 0);
+		halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_BT, false, true);
 	} else if (type =3D=3D BTC_IPS_LEAVE) {
 		pCoexSta->bUnderIps =3D false;
=20
-		halbtc8723b1ant_InitHwConfig(pBtCoexist, false, false);
-		halbtc8723b1ant_InitCoexDm(pBtCoexist);
-		halbtc8723b1ant_QueryBtInfo(pBtCoexist);
+		halbtc8723b1ant_InitHwConfig(bt_coexist, false, false);
+		halbtc8723b1ant_InitCoexDm(bt_coexist);
+		halbtc8723b1ant_QueryBtInfo(bt_coexist);
 	}
 }
=20
-void EXhalbtc8723b1ant_LpsNotify(struct btc_coexist *pBtCoexist, u8 type)
+void EXhalbtc8723b1ant_LpsNotify(struct btc_coexist *bt_coexist, u8 type)
 {
-	if (pBtCoexist->bManualControl || pBtCoexist->bStopCoexDm)
+	if (bt_coexist->bManualControl || bt_coexist->bStopCoexDm)
 		return;
=20
 	if (type =3D=3D BTC_LPS_ENABLE)
@@ -2232,85 +2232,85 @@ void EXhalbtc8723b1ant_LpsNotify(struct btc_coexist=
 *pBtCoexist, u8 type)
 		pCoexSta->bUnderLps =3D false;
 }
=20
-void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type)
+void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *bt_coexist, u8 type)
 {
 	bool bWifiConnected =3D false, bBtHsOn =3D false;
 	u32 wifiLinkStatus =3D 0;
 	u32 numOfWifiLink =3D 0;
-	bool bBtCtrlAggBufSize =3D false;
-	u8 aggBufSize =3D 5;
+	bool bt_ctrl_agg_buf_size =3D false;
+	u8 agg_buf_size =3D 5;
=20
-	if (pBtCoexist->bManualControl || pBtCoexist->bStopCoexDm)
+	if (bt_coexist->bManualControl || bt_coexist->bStopCoexDm)
 		return;
=20
 	if (type =3D=3D BTC_SCAN_START) {
 		pCoexSta->bWiFiIsHighPriTask =3D true;
=20
-		halbtc8723b1ant_PsTdma(pBtCoexist, FORCE_EXEC, false, 8);  /* Force ante=
nna setup for no scan result issue */
-		pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x948);
-		pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x765);
-		pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x67);
+		halbtc8723b1ant_PsTdma(bt_coexist, FORCE_EXEC, false, 8);  /* Force ante=
nna setup for no scan result issue */
+		bt_coexist->fBtcRead4Byte(bt_coexist, 0x948);
+		bt_coexist->fBtcRead1Byte(bt_coexist, 0x765);
+		bt_coexist->fBtcRead1Byte(bt_coexist, 0x67);
 	} else {
 		pCoexSta->bWiFiIsHighPriTask =3D false;
=20
-		pBtCoexist->fBtcGet(
-			pBtCoexist, BTC_GET_U1_AP_NUM, &pCoexSta->nScanAPNum
+		bt_coexist->fBtcGet(
+			bt_coexist, BTC_GET_U1_AP_NUM, &pCoexSta->nScanAPNum
 		);
 	}
=20
-	if (pBtCoexist->btInfo.bBtDisabled)
+	if (bt_coexist->btInfo.bBtDisabled)
 		return;
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
=20
-	halbtc8723b1ant_QueryBtInfo(pBtCoexist);
+	halbtc8723b1ant_QueryBtInfo(bt_coexist);
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkSta=
tus);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkSta=
tus);
 	numOfWifiLink =3D wifiLinkStatus >> 16;
=20
 	if (numOfWifiLink >=3D 2) {
-		halbtc8723b1ant_LimitedTx(pBtCoexist, NORMAL_EXEC, 0, 0, 0, 0);
+		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
 		halbtc8723b1ant_LimitedRx(
-			pBtCoexist, NORMAL_EXEC, false, bBtCtrlAggBufSize, aggBufSize
+			bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_buf_size, agg_buf_size
 		);
-		halbtc8723b1ant_ActionWifiMultiPort(pBtCoexist);
+		halbtc8723b1ant_ActionWifiMultiPort(bt_coexist);
 		return;
 	}
=20
 	if (pCoexSta->bC2hBtInquiryPage) {
-		halbtc8723b1ant_ActionBtInquiry(pBtCoexist);
+		halbtc8723b1ant_ActionBtInquiry(bt_coexist);
 		return;
 	} else if (bBtHsOn) {
-		halbtc8723b1ant_ActionHs(pBtCoexist);
+		halbtc8723b1ant_ActionHs(bt_coexist);
 		return;
 	}
=20
 	if (type =3D=3D BTC_SCAN_START) {
 		if (!bWifiConnected)	/*  non-connected scan */
-			halbtc8723b1ant_ActionWifiNotConnectedScan(pBtCoexist);
+			halbtc8723b1ant_ActionWifiNotConnectedScan(bt_coexist);
 		else	/*  wifi is connected */
-			halbtc8723b1ant_ActionWifiConnectedScan(pBtCoexist);
+			halbtc8723b1ant_ActionWifiConnectedScan(bt_coexist);
 	} else if (type =3D=3D BTC_SCAN_FINISH) {
 		if (!bWifiConnected)	/*  non-connected scan */
-			halbtc8723b1ant_ActionWifiNotConnected(pBtCoexist);
+			halbtc8723b1ant_ActionWifiNotConnected(bt_coexist);
 		else
-			halbtc8723b1ant_ActionWifiConnected(pBtCoexist);
+			halbtc8723b1ant_ActionWifiConnected(bt_coexist);
 	}
 }
=20
-void EXhalbtc8723b1ant_ConnectNotify(struct btc_coexist *pBtCoexist, u8 ty=
pe)
+void EXhalbtc8723b1ant_ConnectNotify(struct btc_coexist *bt_coexist, u8 ty=
pe)
 {
 	bool bWifiConnected =3D false, bBtHsOn =3D false;
 	u32 wifiLinkStatus =3D 0;
 	u32 numOfWifiLink =3D 0;
-	bool bBtCtrlAggBufSize =3D false;
-	u8 aggBufSize =3D 5;
+	bool bt_ctrl_agg_buf_size =3D false;
+	u8 agg_buf_size =3D 5;
=20
 	if (
-		pBtCoexist->bManualControl ||
-		pBtCoexist->bStopCoexDm ||
-		pBtCoexist->btInfo.bBtDisabled
+		bt_coexist->bManualControl ||
+		bt_coexist->bStopCoexDm ||
+		bt_coexist->btInfo.bBtDisabled
 	)
 		return;
=20
@@ -2322,79 +2322,79 @@ void EXhalbtc8723b1ant_ConnectNotify(struct btc_coe=
xist *pBtCoexist, u8 type)
 		/* pCoexDm->nArpCnt =3D 0; */
 	}
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkSta=
tus);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkSta=
tus);
 	numOfWifiLink =3D wifiLinkStatus >> 16;
 	if (numOfWifiLink >=3D 2) {
-		halbtc8723b1ant_LimitedTx(pBtCoexist, NORMAL_EXEC, 0, 0, 0, 0);
-		halbtc8723b1ant_LimitedRx(pBtCoexist, NORMAL_EXEC, false, bBtCtrlAggBufS=
ize, aggBufSize);
-		halbtc8723b1ant_ActionWifiMultiPort(pBtCoexist);
+		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
+		halbtc8723b1ant_LimitedRx(bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_bu=
f_size, agg_buf_size);
+		halbtc8723b1ant_ActionWifiMultiPort(bt_coexist);
 		return;
 	}
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
 	if (pCoexSta->bC2hBtInquiryPage) {
-		halbtc8723b1ant_ActionBtInquiry(pBtCoexist);
+		halbtc8723b1ant_ActionBtInquiry(bt_coexist);
 		return;
 	} else if (bBtHsOn) {
-		halbtc8723b1ant_ActionHs(pBtCoexist);
+		halbtc8723b1ant_ActionHs(bt_coexist);
 		return;
 	}
=20
 	if (type =3D=3D BTC_ASSOCIATE_START) {
-		halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(pBtCoexist);
+		halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(bt_coexist);
 	} else if (type =3D=3D BTC_ASSOCIATE_FINISH) {
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnect=
ed);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnect=
ed);
 		if (!bWifiConnected) /*  non-connected scan */
-			halbtc8723b1ant_ActionWifiNotConnected(pBtCoexist);
+			halbtc8723b1ant_ActionWifiNotConnected(bt_coexist);
 		else
-			halbtc8723b1ant_ActionWifiConnected(pBtCoexist);
+			halbtc8723b1ant_ActionWifiConnected(bt_coexist);
 	}
 }
=20
-void EXhalbtc8723b1ant_MediaStatusNotify(struct btc_coexist *pBtCoexist, u=
8 type)
+void EXhalbtc8723b1ant_MediaStatusNotify(struct btc_coexist *bt_coexist, u=
8 type)
 {
 	u8 H2C_Parameter[3] =3D {0};
 	u32 wifiBw;
 	u8 wifiCentralChnl;
-	bool bWifiUnderBMode =3D false;
+	bool wifi_under_b_mode =3D false;
=20
 	if (
-		pBtCoexist->bManualControl ||
-		pBtCoexist->bStopCoexDm ||
-		pBtCoexist->btInfo.bBtDisabled
+		bt_coexist->bManualControl ||
+		bt_coexist->bStopCoexDm ||
+		bt_coexist->btInfo.bBtDisabled
 	)
 		return;
=20
 	if (type =3D=3D BTC_MEDIA_CONNECT) {
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &bWifiUnde=
rBMode);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &wifi_unde=
r_b_mode);
=20
 		/* Set CCK Tx/Rx high Pri except 11b mode */
-		if (bWifiUnderBMode) {
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cd, 0x00); /* CCK Tx */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cf, 0x00); /* CCK Rx */
+		if (wifi_under_b_mode) {
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cd, 0x00); /* CCK Tx */
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cf, 0x00); /* CCK Rx */
 		} else {
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cd, 0x10); /* CCK Tx */
-			pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cf, 0x10); /* CCK Rx */
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cd, 0x10); /* CCK Tx */
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cf, 0x10); /* CCK Rx */
 		}
=20
-		pCoexDm->backupArfrCnt1 =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x430);
-		pCoexDm->backupArfrCnt2 =3D pBtCoexist->fBtcRead4Byte(pBtCoexist, 0x434);
-		pCoexDm->backupRetryLimit =3D pBtCoexist->fBtcRead2Byte(pBtCoexist, 0x42=
a);
-		pCoexDm->backupAmpduMaxTime =3D pBtCoexist->fBtcRead1Byte(pBtCoexist, 0x=
456);
+		pCoexDm->backupArfrCnt1 =3D bt_coexist->fBtcRead4Byte(bt_coexist, 0x430);
+		pCoexDm->backupArfrCnt2 =3D bt_coexist->fBtcRead4Byte(bt_coexist, 0x434);
+		pCoexDm->backupRetryLimit =3D bt_coexist->fBtcRead2Byte(bt_coexist, 0x42=
a);
+		pCoexDm->backupAmpduMaxTime =3D bt_coexist->fBtcRead1Byte(bt_coexist, 0x=
456);
 	} else {
 		pCoexDm->nArpCnt =3D 0;
=20
-		pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cd, 0x0); /* CCK Tx */
-		pBtCoexist->fBtcWrite1Byte(pBtCoexist, 0x6cf, 0x0); /* CCK Rx */
+		bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cd, 0x0); /* CCK Tx */
+		bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cf, 0x0); /* CCK Rx */
 	}
=20
 	/*  only 2.4G we need to inform bt the chnl mask */
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, &wifiCentra=
lChnl);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, &wifiCentra=
lChnl);
 	if ((type =3D=3D BTC_MEDIA_CONNECT) && (wifiCentralChnl <=3D 14)) {
 		/* H2C_Parameter[0] =3D 0x1; */
 		H2C_Parameter[0] =3D 0x0;
 		H2C_Parameter[1] =3D wifiCentralChnl;
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_BW, &wifiBw);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_WIFI_BW, &wifiBw);
=20
 		if (wifiBw =3D=3D BTC_WIFI_BW_HT40)
 			H2C_Parameter[2] =3D 0x30;
@@ -2406,21 +2406,21 @@ void EXhalbtc8723b1ant_MediaStatusNotify(struct btc=
_coexist *pBtCoexist, u8 type
 	pCoexDm->wifiChnlInfo[1] =3D H2C_Parameter[1];
 	pCoexDm->wifiChnlInfo[2] =3D H2C_Parameter[2];
=20
-	pBtCoexist->fBtcFillH2c(pBtCoexist, 0x66, 3, H2C_Parameter);
+	bt_coexist->fBtcFillH2c(bt_coexist, 0x66, 3, H2C_Parameter);
 }
=20
-void EXhalbtc8723b1ant_SpecialPacketNotify(struct btc_coexist *pBtCoexist,=
 u8 type)
+void EXhalbtc8723b1ant_SpecialPacketNotify(struct btc_coexist *bt_coexist,=
 u8 type)
 {
 	bool bBtHsOn =3D false;
 	u32 wifiLinkStatus =3D 0;
 	u32 numOfWifiLink =3D 0;
-	bool bBtCtrlAggBufSize =3D false;
-	u8 aggBufSize =3D 5;
+	bool bt_ctrl_agg_buf_size =3D false;
+	u8 agg_buf_size =3D 5;
=20
 	if (
-		pBtCoexist->bManualControl ||
-		pBtCoexist->bStopCoexDm ||
-		pBtCoexist->btInfo.bBtDisabled
+		bt_coexist->bManualControl ||
+		bt_coexist->bStopCoexDm ||
+		bt_coexist->btInfo.bBtDisabled
 	)
 		return;
=20
@@ -2432,7 +2432,7 @@ void EXhalbtc8723b1ant_SpecialPacketNotify(struct btc=
_coexist *pBtCoexist, u8 ty
 		if (type =3D=3D BTC_PACKET_ARP) {
 			pCoexDm->nArpCnt++;
=20
-			if (pCoexDm->nArpCnt >=3D 10) /*  if APR PKT > 10 after connect, do not=
 go to ActionWifiConnectedSpecialPacket(pBtCoexist) */
+			if (pCoexDm->nArpCnt >=3D 10) /*  if APR PKT > 10 after connect, do not=
 go to ActionWifiConnectedSpecialPacket(bt_coexist) */
 				pCoexSta->bWiFiIsHighPriTask =3D false;
 			else
 				pCoexSta->bWiFiIsHighPriTask =3D true;
@@ -2445,26 +2445,26 @@ void EXhalbtc8723b1ant_SpecialPacketNotify(struct b=
tc_coexist *pBtCoexist, u8 ty
=20
 	pCoexSta->specialPktPeriodCnt =3D 0;
=20
-	pBtCoexist->fBtcGet(
-		pBtCoexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkStatus
+	bt_coexist->fBtcGet(
+		bt_coexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkStatus
 	);
 	numOfWifiLink =3D wifiLinkStatus >> 16;
=20
 	if (numOfWifiLink >=3D 2) {
-		halbtc8723b1ant_LimitedTx(pBtCoexist, NORMAL_EXEC, 0, 0, 0, 0);
+		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
 		halbtc8723b1ant_LimitedRx(
-			pBtCoexist, NORMAL_EXEC, false, bBtCtrlAggBufSize, aggBufSize
+			bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_buf_size, agg_buf_size
 		);
-		halbtc8723b1ant_ActionWifiMultiPort(pBtCoexist);
+		halbtc8723b1ant_ActionWifiMultiPort(bt_coexist);
 		return;
 	}
=20
-	pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
 	if (pCoexSta->bC2hBtInquiryPage) {
-		halbtc8723b1ant_ActionBtInquiry(pBtCoexist);
+		halbtc8723b1ant_ActionBtInquiry(bt_coexist);
 		return;
 	} else if (bBtHsOn) {
-		halbtc8723b1ant_ActionHs(pBtCoexist);
+		halbtc8723b1ant_ActionHs(bt_coexist);
 		return;
 	}
=20
@@ -2473,11 +2473,11 @@ void EXhalbtc8723b1ant_SpecialPacketNotify(struct b=
tc_coexist *pBtCoexist, u8 ty
 		type =3D=3D BTC_PACKET_EAPOL ||
 		((type =3D=3D BTC_PACKET_ARP) && (pCoexSta->bWiFiIsHighPriTask))
 	)
-		halbtc8723b1ant_ActionWifiConnectedSpecialPacket(pBtCoexist);
+		halbtc8723b1ant_ActionWifiConnectedSpecialPacket(bt_coexist);
 }
=20
 void EXhalbtc8723b1ant_BtInfoNotify(
-	struct btc_coexist *pBtCoexist, u8 *tmpBuf, u8 length
+	struct btc_coexist *bt_coexist, u8 *tmpBuf, u8 length
 )
 {
 	u8 btInfo =3D 0;
@@ -2509,32 +2509,32 @@ void EXhalbtc8723b1ant_BtInfoNotify(
 		else
 			pCoexSta->bC2hBtPage =3D false;
=20
-		pCoexSta->btRssi =3D pCoexSta->btInfoC2h[rspSource][3] * 2 - 90;
+		pCoexSta->bt_rssi =3D pCoexSta->btInfoC2h[rspSource][3] * 2 - 90;
 		/* pCoexSta->btInfoC2h[rspSource][3]*2+10; */
=20
 		pCoexSta->btInfoExt =3D pCoexSta->btInfoC2h[rspSource][4];
=20
 		pCoexSta->bBtTxRxMask =3D (pCoexSta->btInfoC2h[rspSource][2] & 0x40);
-		pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_BL_BT_TX_RX_MASK, &pCoexSta->bBt=
TxRxMask);
+		bt_coexist->fBtcSet(bt_coexist, BTC_SET_BL_BT_TX_RX_MASK, &pCoexSta->bBt=
TxRxMask);
=20
 		if (!pCoexSta->bBtTxRxMask) {
 			/* BT into is responded by BT FW and BT RF REG 0x3C !=3D 0x15 =3D> Need=
 to switch BT TRx Mask */
-			pBtCoexist->fBtcSetBtReg(pBtCoexist, BTC_BT_REG_RF, 0x3c, 0x15);
+			bt_coexist->fBtcSetBtReg(bt_coexist, BTC_BT_REG_RF, 0x3c, 0x15);
 		}
=20
 		/*  Here we need to resend some wifi info to BT */
 		/*  because bt is reset and loss of the info. */
 		if (pCoexSta->btInfoExt & BIT1) {
-			pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnec=
ted);
+			bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnec=
ted);
 			if (bWifiConnected)
-				EXhalbtc8723b1ant_MediaStatusNotify(pBtCoexist, BTC_MEDIA_CONNECT);
+				EXhalbtc8723b1ant_MediaStatusNotify(bt_coexist, BTC_MEDIA_CONNECT);
 			else
-				EXhalbtc8723b1ant_MediaStatusNotify(pBtCoexist, BTC_MEDIA_DISCONNECT);
+				EXhalbtc8723b1ant_MediaStatusNotify(bt_coexist, BTC_MEDIA_DISCONNECT);
 		}
=20
 		if (pCoexSta->btInfoExt & BIT3) {
-			if (!pBtCoexist->bManualControl && !pBtCoexist->bStopCoexDm)
-				halbtc8723b1ant_IgnoreWlanAct(pBtCoexist, FORCE_EXEC, false);
+			if (!bt_coexist->bManualControl && !bt_coexist->bStopCoexDm)
+				halbtc8723b1ant_IgnoreWlanAct(bt_coexist, FORCE_EXEC, false);
 		} else {
 			/*  BT already NOT ignore Wlan active, do nothing here. */
 		}
@@ -2576,7 +2576,7 @@ void EXhalbtc8723b1ant_BtInfoNotify(
 			pCoexSta->bScoExist =3D false;
 	}
=20
-	halbtc8723b1ant_UpdateBtLinkInfo(pBtCoexist);
+	halbtc8723b1ant_UpdateBtLinkInfo(bt_coexist);
=20
 	btInfo =3D btInfo & 0x1f;  /* mask profile bit for connect-ilde identific=
ation (for CSR case: A2DP idle --> 0x41) */
=20
@@ -2607,60 +2607,60 @@ void EXhalbtc8723b1ant_BtInfoNotify(
 		bBtBusy =3D true;
 	else
 		bBtBusy =3D false;
-	pBtCoexist->fBtcSet(pBtCoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bBtBusy);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bBtBusy);
=20
-	halbtc8723b1ant_RunCoexistMechanism(pBtCoexist);
+	halbtc8723b1ant_RunCoexistMechanism(bt_coexist);
 }
=20
-void EXhalbtc8723b1ant_HaltNotify(struct btc_coexist *pBtCoexist)
+void EXhalbtc8723b1ant_HaltNotify(struct btc_coexist *bt_coexist)
 {
-	halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
-	halbtc8723b1ant_PsTdma(pBtCoexist, FORCE_EXEC, false, 0);
-	halbtc8723b1ant_SetAntPath(pBtCoexist, BTC_ANT_PATH_BT, false, true);
+	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+	halbtc8723b1ant_PsTdma(bt_coexist, FORCE_EXEC, false, 0);
+	halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_BT, false, true);
=20
-	halbtc8723b1ant_IgnoreWlanAct(pBtCoexist, FORCE_EXEC, true);
+	halbtc8723b1ant_IgnoreWlanAct(bt_coexist, FORCE_EXEC, true);
=20
-	EXhalbtc8723b1ant_MediaStatusNotify(pBtCoexist, BTC_MEDIA_DISCONNECT);
+	EXhalbtc8723b1ant_MediaStatusNotify(bt_coexist, BTC_MEDIA_DISCONNECT);
=20
-	pBtCoexist->bStopCoexDm =3D true;
+	bt_coexist->bStopCoexDm =3D true;
 }
=20
-void EXhalbtc8723b1ant_PnpNotify(struct btc_coexist *pBtCoexist, u8 pnpSta=
te)
+void EXhalbtc8723b1ant_PnpNotify(struct btc_coexist *bt_coexist, u8 pnpSta=
te)
 {
 	if (pnpState =3D=3D BTC_WIFI_PNP_SLEEP) {
-		halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
-		halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0);
-		halbtc8723b1ant_CoexTableWithType(pBtCoexist, NORMAL_EXEC, 2);
-		halbtc8723b1ant_SetAntPath(pBtCoexist, BTC_ANT_PATH_BT, false, true);
+		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
+		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 0);
+		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 2);
+		halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_BT, false, true);
=20
-		pBtCoexist->bStopCoexDm =3D true;
+		bt_coexist->bStopCoexDm =3D true;
 	} else if (pnpState =3D=3D BTC_WIFI_PNP_WAKE_UP) {
-		pBtCoexist->bStopCoexDm =3D false;
-		halbtc8723b1ant_InitHwConfig(pBtCoexist, false, false);
-		halbtc8723b1ant_InitCoexDm(pBtCoexist);
-		halbtc8723b1ant_QueryBtInfo(pBtCoexist);
+		bt_coexist->bStopCoexDm =3D false;
+		halbtc8723b1ant_InitHwConfig(bt_coexist, false, false);
+		halbtc8723b1ant_InitCoexDm(bt_coexist);
+		halbtc8723b1ant_QueryBtInfo(bt_coexist);
 	}
 }
=20
-void EXhalbtc8723b1ant_Periodical(struct btc_coexist *pBtCoexist)
+void EXhalbtc8723b1ant_Periodical(struct btc_coexist *bt_coexist)
 {
 	static u8 disVerInfoCnt;
 	u32 fwVer =3D 0, btPatchVer =3D 0;
=20
 	if (disVerInfoCnt <=3D 5) {
 		disVerInfoCnt +=3D 1;
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_BT_PATCH_VER, &btPatchVer);
-		pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U4_WIFI_FW_VER, &fwVer);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_BT_PATCH_VER, &btPatchVer);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_WIFI_FW_VER, &fwVer);
 	}
=20
-	halbtc8723b1ant_MonitorBtCtr(pBtCoexist);
-	halbtc8723b1ant_MonitorWiFiCtr(pBtCoexist);
+	halbtc8723b1ant_MonitorBtCtr(bt_coexist);
+	halbtc8723b1ant_MonitorWiFiCtr(bt_coexist);
=20
 	if (
-		halbtc8723b1ant_IsWifiStatusChanged(pBtCoexist) ||
+		halbtc8723b1ant_IsWifiStatusChanged(bt_coexist) ||
 		pCoexDm->bAutoTdmaAdjust
 	)
-		halbtc8723b1ant_RunCoexistMechanism(pBtCoexist);
+		halbtc8723b1ant_RunCoexistMechanism(bt_coexist);
=20
 	pCoexSta->specialPktPeriodCnt++;
 }
--=20
2.43.0
From nobody Tue Apr 29 09:42:32 2025
Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com
 [209.85.128.49])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C239A20ADFE
	for <linux-kernel@vger.kernel.org>; Tue,  1 Apr 2025 17:00:15 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
 arc=none smtp.client-ip=209.85.128.49
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1743526819; cv=none;
 b=pW+BhJcqTbPlVU9kZe/EE9u4EaA56cX5oYgZ/LUPo81QVIlYqvjvYVlNzyGi4kcOKRBTDDLSef8+mpuM+ObmChKlGSE5bvV7yjUZvFv6dpYp6bI/SMEwtc/to6KuZ7G2ijhqfwf2hyaiU0fmoMzRNHK+DQOiqr6Q3JQnPjK/+IM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1743526819; c=relaxed/simple;
	bh=foDclbP/TlQRrCu8tgdi2aoPJ8hCxjzAQL0730Nl08c=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version;
 b=B1lVncPtU9E2WBgl6FRwJbR7Ktv93ixxj0whE7ft47n8kUMFQ1pt8tiA57fCjyqg+e9y8I7IDE5Ee9eBQfXibKvThOg3Y7L33R9wm2zbDLU6a6kav0bUQPYckYPS9XKtKHzjS9bYWLUrXFf0ynrDUMF9xawZfcvqqWFuacrOUZc=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com;
 spf=pass smtp.mailfrom=gmail.com;
 dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b=bUXAa56q; arc=none smtp.client-ip=209.85.128.49
Authentication-Results: smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
 spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b="bUXAa56q"
Received: by mail-wm1-f49.google.com with SMTP id
 5b1f17b1804b1-43cfebc343dso43831645e9.2
        for <linux-kernel@vger.kernel.org>;
 Tue, 01 Apr 2025 10:00:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743526814; x=1744131614;
 darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to;
        bh=63rntMu6mHz+tpAooeaR2mvAWehtxxAhVQYDRfaydoE=;
        b=bUXAa56q0gZtPQGP7+Xp3cfDCSAt0FFhUMetNbo7mpiRb3plFgRIyPbhVBx7Fh5f3h
         D/Pcm1xQMcxFJJylB8aRPGmAW5U4pzugRUidQ4S9fGu16GjQfeeC2iL/uwXgz9+xGzo5
         nCXSnwobC3BsjI5E5/XvRgR0VE1olyhL307wqEyBerDJE49pJfsESlIMUO1YYlQWfJhh
         6yRNfDxTt5RYO0N2y6Z5b2DHEtSU3sXRbeP/fddS7SS0omjwss0JpqMf7yEFSqSVJUCt
         fcil2hgPPblmzBu+YZ+qiNOcIurCYtbnBn95/dWntAX73uz6E26EgWll7Tx0NNFXc+JE
         6gow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743526814; x=1744131614;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=63rntMu6mHz+tpAooeaR2mvAWehtxxAhVQYDRfaydoE=;
        b=MlyoT1/pEApHjEtvsqeyvRcDFvakw9E85vFwP3ikgOp6n85UydgXFMjcD0QgDFlUbA
         FwHTtBTfN2dnnB1uRtJhfj4l5++Dya3Cif+9oBFT80co94D4rPFEnmcxRDJLnjVxb3G5
         rbxRVVZlJDHcclsCGvnhS83U94dFtLp6YvzRn0DkSAZTnfXlj9H5mkJJDWhKt5jsRYNl
         DdstIeq8iYMQhCxTHf5CAxeKCoTA47UnNfkGXq0qiWyfBvyObYRwsoHbPbA0eHdMuE6f
         xygGIQv8YYHdrcuugb1I7sC17vlA8Uk81nNLZWotmyWZA8y+Vu6FmnF2i9UKr/FSadcB
         fQLg==
X-Forwarded-Encrypted: i=1;
 AJvYcCXPzogvP4v/fLBe3fDzeHVLoUdi7N/nhTlveNpHaPMwWMJ1eUhAhTXYFHDCVoddqlDZ5uPJJ8KansZ7Bro=@vger.kernel.org
X-Gm-Message-State: AOJu0YwT2juaG5R96ENTBIpM3GKHcJXqRW1G1F4kg1AskST7bi9UQH+W
	EjHmMb4PmrVuM+xXKoo/G4sL8vo6qqTm8j1S0nMu/w74RyMR9msC
X-Gm-Gg: ASbGncu0VsqBYcUDDRgO8sPpoTM3ONkGejHExIDpXQX66axtc2U98e4iL6E5EX27w+I
	10WK+Qn0iV9uTQLVarf+D2TorW5/ZLreMslnEl/rlHOu1dktIW3idwvW7yKE2HQPvnJDQts/u6t
	Nri+MJOt05CE1ZGQly2UVGhA9xLJSmuvUxdHYLV14c3Ymea/BwgJxJtorUKhHDwE3bKX1g9dN3/
	+DKzPAuOqDHt6O6LrznM5Rn6g/VSti8WLdCBZGg3S7TzfB7cFrFX3h/zgyNtD4UJ5A4BrL5/iUY
	ohV/xgaFm68EYo2weSN8kwv5MiXn01KOlLuw4cI=
X-Google-Smtp-Source: 
 AGHT+IFbxHMFA0W3St3sHLWQk/4FDHJ2Lyt4bjYdbnL/pzUpL00RhBxIR58DyEIGJ7ZA8mnSPQccQA==
X-Received: by 2002:a05:600c:1e8a:b0:43c:f81d:34 with SMTP id
 5b1f17b1804b1-43ea7c717d1mr45707665e9.9.1743526813798;
        Tue, 01 Apr 2025 10:00:13 -0700 (PDT)
Received: from pc.. ([41.206.42.66])
        by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d8fccfe2fsm161520215e9.22.2025.04.01.10.00.10
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Apr 2025 10:00:13 -0700 (PDT)
From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org,
	outreachy@lists.linux.dev
Cc: karanja99erick@gmail.com,
	philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 4/5] staging: rtl8723bs: fix check lines should not end
 with a '('
Date: Tue,  1 Apr 2025 19:59:36 +0300
Message-ID: 
 <6d74b5c827923d1df30aefa66540f499bf62636a.1743524096.git.karanja99erick@gmail.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <cover.1743524096.git.karanja99erick@gmail.com>
References: <cover.1743524096.git.karanja99erick@gmail.com>
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
List-Id: <linux-kernel.vger.kernel.org>
List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

 Fix Line should not end with a '('
    so as to adhere to the Linux kernel
    coding-style guidelines.

Reported by checkpatch:
	CHECK: line should not end with a '('

Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
---
 .../staging/rtl8723bs/hal/HalBtc8723b1Ant.c   | 898 ++++++++----------
 1 file changed, 398 insertions(+), 500 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/stag=
ing/rtl8723bs/hal/HalBtc8723b1Ant.c
index e3c67f98e8c0..6edb76cb3b6c 100644
--- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
+++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
@@ -15,9 +15,7 @@ static struct coex_sta_8723b_1ant *pCoexSta =3D &GLCoexSt=
a8723b1Ant;
=20
 /*  local function proto type if needed */
 /*  local function start with halbtc8723b1ant_ */
-static u8 halbtc8723b1ant_BtRssiState(
-	u8 level_num, u8 rssi_thresh, u8 rssi_thresh1
-)
+static u8 halbtc8723b1ant_BtRssiState(u8 level_num, u8 rssi_thresh, u8 rss=
i_thresh1)
 {
 	s32 bt_rssi =3D 0;
 	u8 bt_rssi_state =3D pCoexSta->preBtRssiState;
@@ -25,9 +23,8 @@ static u8 halbtc8723b1ant_BtRssiState(
 	bt_rssi =3D pCoexSta->bt_rssi;
=20
 	if (level_num =3D=3D 2) {
-		if (
-			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_LOW) ||
-			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_LOW)
+		if ((pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_LOW) ||
+		    (pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_LOW)
 		) {
 			if (bt_rssi >=3D (rssi_thresh + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
=20
@@ -44,16 +41,14 @@ static u8 halbtc8723b1ant_BtRssiState(
 		if (rssi_thresh > rssi_thresh1)
 			return pCoexSta->preBtRssiState;
=20
-		if (
-			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_LOW) ||
-			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_LOW)
+		if ((pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_LOW) ||
+		    (pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_LOW)
 		) {
 			if (bt_rssi >=3D (rssi_thresh + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
 				bt_rssi_state =3D BTC_RSSI_STATE_MEDIUM;
 			else
 				bt_rssi_state =3D BTC_RSSI_STATE_STAY_LOW;
-		} else if (
-			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_MEDIUM) ||
+		} else if ((pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_MEDIUM) ||
 			(pCoexSta->preBtRssiState =3D=3D BTC_RSSI_STATE_STAY_MEDIUM)
 		) {
 			if (bt_rssi >=3D (rssi_thresh1 + BTC_RSSI_COEX_THRESH_TOL_8723B_1ANT))
@@ -75,24 +70,21 @@ static u8 halbtc8723b1ant_BtRssiState(
 	return bt_rssi_state;
 }
=20
-static void halbtc8723b1ant_UpdateRaMask(
-	struct btc_coexist *bt_coexist, bool force_exec, u32 dis_rate_mask
-)
+static void halbtc8723b1ant_UpdateRaMask(struct btc_coexist *bt_coexist, b=
ool force_exec,
+					 u32 dis_rate_mask)
 {
 	pCoexDm->curRaMask =3D dis_rate_mask;
=20
 	if (force_exec || (pCoexDm->preRaMask !=3D pCoexDm->curRaMask))
-		bt_coexist->fBtcSet(
-			bt_coexist,
-			BTC_SET_ACT_UPDATE_RAMASK,
-			&pCoexDm->curRaMask
+		bt_coexist->fBtcSet(bt_coexist,
+				    BTC_SET_ACT_UPDATE_RAMASK,
+				    &pCoexDm->curRaMask
 		);
 	pCoexDm->preRaMask =3D pCoexDm->curRaMask;
 }
=20
-static void halbtc8723b1ant_AutoRateFallbackRetry(
-	struct btc_coexist *bt_coexist, bool force_exec, u8 type
-)
+static void halbtc8723b1ant_AutoRateFallbackRetry(struct btc_coexist *bt_c=
oexist, bool force_exec,
+						  u8 type)
 {
 	bool wifi_under_b_mode =3D false;
=20
@@ -101,17 +93,12 @@ static void halbtc8723b1ant_AutoRateFallbackRetry(
 	if (force_exec || (pCoexDm->preArfrType !=3D pCoexDm->curArfrType)) {
 		switch (pCoexDm->curArfrType) {
 		case 0:	/*  normal mode */
-			bt_coexist->fBtcWrite4Byte(
-				bt_coexist, 0x430, pCoexDm->backupArfrCnt1
-			);
-			bt_coexist->fBtcWrite4Byte(
-				bt_coexist, 0x434, pCoexDm->backupArfrCnt2
-			);
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x430, pCoexDm->backupArfrCnt1);
+			bt_coexist->fBtcWrite4Byte(bt_coexist, 0x434, pCoexDm->backupArfrCnt2);
 			break;
 		case 1:
-			bt_coexist->fBtcGet(
-				bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &wifi_under_b_mode
-			);
+			bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE,
+					    &wifi_under_b_mode);
 			if (wifi_under_b_mode) {
 				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x430, 0x0);
 				bt_coexist->fBtcWrite4Byte(bt_coexist, 0x434, 0x01010101);
@@ -128,21 +115,14 @@ static void halbtc8723b1ant_AutoRateFallbackRetry(
 	pCoexDm->preArfrType =3D pCoexDm->curArfrType;
 }
=20
-static void halbtc8723b1ant_RetryLimit(
-	struct btc_coexist *bt_coexist, bool force_exec, u8 type
-)
+static void halbtc8723b1ant_RetryLimit(struct btc_coexist *bt_coexist, boo=
l force_exec, u8 type)
 {
 	pCoexDm->curRetryLimitType =3D type;
=20
-	if (
-		force_exec ||
-		(pCoexDm->preRetryLimitType !=3D pCoexDm->curRetryLimitType)
-	) {
+	if (force_exec || (pCoexDm->preRetryLimitType !=3D pCoexDm->curRetryLimit=
Type)) {
 		switch (pCoexDm->curRetryLimitType) {
 		case 0:	/*  normal mode */
-			bt_coexist->fBtcWrite2Byte(
-				bt_coexist, 0x42a, pCoexDm->backupRetryLimit
-			);
+			bt_coexist->fBtcWrite2Byte(bt_coexist, 0x42a, pCoexDm->backupRetryLimit=
);
 			break;
 		case 1:	/*  retry limit =3D8 */
 			bt_coexist->fBtcWrite2Byte(bt_coexist, 0x42a, 0x0808);
@@ -155,20 +135,15 @@ static void halbtc8723b1ant_RetryLimit(
 	pCoexDm->preRetryLimitType =3D pCoexDm->curRetryLimitType;
 }
=20
-static void halbtc8723b1ant_AmpduMaxTime(
-	struct btc_coexist *bt_coexist, bool force_exec, u8 type
-)
+static void halbtc8723b1ant_AmpduMaxTime(struct btc_coexist *bt_coexist, b=
ool force_exec, u8 type)
 {
 	pCoexDm->curAmpduTimeType =3D type;
=20
-	if (
-		force_exec || (pCoexDm->preAmpduTimeType !=3D pCoexDm->curAmpduTimeType)
+	if (force_exec || (pCoexDm->preAmpduTimeType !=3D pCoexDm->curAmpduTimeTy=
pe)
 	) {
 		switch (pCoexDm->curAmpduTimeType) {
 		case 0:	/*  normal mode */
-			bt_coexist->fBtcWrite1Byte(
-				bt_coexist, 0x456, pCoexDm->backupAmpduMaxTime
-			);
+			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x456, pCoexDm->backupAmpduMaxTi=
me);
 			break;
 		case 1:	/*  AMPDU timw =3D 0x38 * 32us */
 			bt_coexist->fBtcWrite1Byte(bt_coexist, 0x456, 0x38);
@@ -181,14 +156,9 @@ static void halbtc8723b1ant_AmpduMaxTime(
 	pCoexDm->preAmpduTimeType =3D pCoexDm->curAmpduTimeType;
 }
=20
-static void halbtc8723b1ant_LimitedTx(
-	struct btc_coexist *bt_coexist,
-	bool force_exec,
-	u8 ra_mask_type,
-	u8 arfr_type,
-	u8 retry_limit_type,
-	u8 ampdu_time_type
-)
+static void halbtc8723b1ant_LimitedTx(struct btc_coexist *bt_coexist, bool=
 force_exec,
+				      u8 ra_mask_type, u8 arfr_type,
+				      u8 retry_limit_type, u8 ampdu_time_type)
 {
 	switch (ra_mask_type) {
 	case 0:	/*  normal mode */
@@ -209,13 +179,11 @@ static void halbtc8723b1ant_LimitedTx(
 	halbtc8723b1ant_AmpduMaxTime(bt_coexist, force_exec, ampdu_time_type);
 }
=20
-static void halbtc8723b1ant_LimitedRx(
-	struct btc_coexist *bt_coexist,
-	bool force_exec,
-	bool rej_ap_agg_pkt,
-	bool bt_ctrl_agg_buf_size,
-	u8 agg_buf_size
-)
+static void halbtc8723b1ant_LimitedRx(struct btc_coexist *bt_coexist,
+				      bool force_exec,
+				      bool rej_ap_agg_pkt,
+				      bool bt_ctrl_agg_buf_size,
+				      u8 agg_buf_size)
 {
 	bool bRejectRxAgg =3D rej_ap_agg_pkt;
 	bool bBtCtrlRxAggSize =3D bt_ctrl_agg_buf_size;
@@ -224,13 +192,9 @@ static void halbtc8723b1ant_LimitedRx(
 	/*  */
 	/*	Rx Aggregation related setting */
 	/*  */
-	bt_coexist->fBtcSet(
-		bt_coexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, &bRejectRxAgg
-	);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, &bRejectRxA=
gg);
 	/*  decide BT control aggregation buf size or not */
-	bt_coexist->fBtcSet(
-		bt_coexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, &bBtCtrlRxAggSize
-	);
+	bt_coexist->fBtcSet(bt_coexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, &bBtCtrlRxAg=
gSize);
 	/*  aggregation buf size, only work when BT control Rx aggregation size. =
*/
 	bt_coexist->fBtcSet(bt_coexist, BTC_SET_U1_AGG_BUF_SIZE, &rxAggSize);
 	/*  real update aggregation setting */
@@ -307,9 +271,7 @@ static void halbtc8723b1ant_MonitorWiFiCtr(struct btc_c=
oexist *bt_coexist)
=20
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi);
-	bt_coexist->fBtcGet(
-		bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &wifi_under_b_mode
-	);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_UNDER_B_MODE, &wifi_under=
_b_mode);
=20
 	if (pCoexSta->bUnderIps) {
 		pCoexSta->nCRCOK_CCK =3D 0;
@@ -339,17 +301,13 @@ static void halbtc8723b1ant_MonitorWiFiCtr(struct btc=
_coexist *bt_coexist)
 	bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0xf16, 0x1, 0x0);
=20
 	if (wifi_busy && (wifi_rssi >=3D 30) && !wifi_under_b_mode) {
-		if (
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY) ||
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY)
+		if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
+		    (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY) ||
+		    (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY)
 		) {
-			if (
-				pCoexSta->nCRCOK_CCK > (
-					pCoexSta->nCRCOK_11g +
-					pCoexSta->nCRCOK_11n +
-					pCoexSta->nCRCOK_11nAgg
-				)
+			if (pCoexSta->nCRCOK_CCK > (pCoexSta->nCRCOK_11g +
+						    pCoexSta->nCRCOK_11n +
+						    pCoexSta->nCRCOK_11nAgg)
 			) {
 				if (nCCKLockCounter < 5)
 					nCCKLockCounter++;
@@ -391,14 +349,10 @@ static bool halbtc8723b1ant_IsWifiStatusChanged(struc=
t btc_coexist *bt_coexist)
 	bool wifi_busy =3D false, bUnder4way =3D false, bBtHsOn =3D false;
 	bool bWifiConnected =3D false;
=20
-	bt_coexist->fBtcGet(
-		bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnected
-	);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
-	bt_coexist->fBtcGet(
-		bt_coexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, &bUnder4way
-	);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, &bUnder4w=
ay);
=20
 	if (bWifiConnected) {
 		if (wifi_busy !=3D bPreWifiBusy) {
@@ -440,44 +394,40 @@ static void halbtc8723b1ant_UpdateBtLinkInfo(struct b=
tc_coexist *bt_coexist)
 	}
=20
 	/*  check if Sco only */
-	if (
-		pBtLinkInfo->bScoExist &&
-		!pBtLinkInfo->bA2dpExist &&
-		!pBtLinkInfo->bPanExist &&
-		!pBtLinkInfo->bHidExist
+	if (pBtLinkInfo->bScoExist &&
+	    !pBtLinkInfo->bA2dpExist &&
+	    !pBtLinkInfo->bPanExist &&
+	    !pBtLinkInfo->bHidExist
 	)
 		pBtLinkInfo->bScoOnly =3D true;
 	else
 		pBtLinkInfo->bScoOnly =3D false;
=20
 	/*  check if A2dp only */
-	if (
-		!pBtLinkInfo->bScoExist &&
-		pBtLinkInfo->bA2dpExist &&
-		!pBtLinkInfo->bPanExist &&
-		!pBtLinkInfo->bHidExist
+	if (!pBtLinkInfo->bScoExist &&
+	    pBtLinkInfo->bA2dpExist &&
+	    !pBtLinkInfo->bPanExist &&
+	    !pBtLinkInfo->bHidExist
 	)
 		pBtLinkInfo->bA2dpOnly =3D true;
 	else
 		pBtLinkInfo->bA2dpOnly =3D false;
=20
 	/*  check if Pan only */
-	if (
-		!pBtLinkInfo->bScoExist &&
-		!pBtLinkInfo->bA2dpExist &&
-		pBtLinkInfo->bPanExist &&
-		!pBtLinkInfo->bHidExist
+	if (!pBtLinkInfo->bScoExist &&
+	    !pBtLinkInfo->bA2dpExist &&
+	    pBtLinkInfo->bPanExist &&
+	    !pBtLinkInfo->bHidExist
 	)
 		pBtLinkInfo->bPanOnly =3D true;
 	else
 		pBtLinkInfo->bPanOnly =3D false;
=20
 	/*  check if Hid only */
-	if (
-		!pBtLinkInfo->bScoExist &&
-		!pBtLinkInfo->bA2dpExist &&
-		!pBtLinkInfo->bPanExist &&
-		pBtLinkInfo->bHidExist
+	if (!pBtLinkInfo->bScoExist &&
+	    !pBtLinkInfo->bA2dpExist &&
+	    !pBtLinkInfo->bPanExist &&
+	    pBtLinkInfo->bHidExist
 	)
 		pBtLinkInfo->bHidOnly =3D true;
 	else
@@ -551,9 +501,7 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_co=
exist *bt_coexist)
 		if (pBtLinkInfo->bScoExist) {
 			if (pBtLinkInfo->bHidExist && pBtLinkInfo->bA2dpExist) {
 				algorithm =3D BT_8723B_1ANT_COEX_ALGO_HID;
-			} else if (
-				pBtLinkInfo->bHidExist && pBtLinkInfo->bPanExist
-			) {
+			} else if (pBtLinkInfo->bHidExist && pBtLinkInfo->bPanExist) {
 				if (bBtHsOn)
 					algorithm =3D BT_8723B_1ANT_COEX_ALGO_HID_A2DP;
 				else
@@ -565,10 +513,9 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_c=
oexist *bt_coexist)
 					algorithm =3D BT_8723B_1ANT_COEX_ALGO_PANEDR_HID;
 			}
 		} else {
-			if (
-				pBtLinkInfo->bHidExist &&
-				pBtLinkInfo->bPanExist &&
-				pBtLinkInfo->bA2dpExist
+			if (pBtLinkInfo->bHidExist &&
+			    pBtLinkInfo->bPanExist &&
+			    pBtLinkInfo->bA2dpExist
 			) {
 				if (bBtHsOn)
 					algorithm =3D BT_8723B_1ANT_COEX_ALGO_HID_A2DP;
@@ -578,10 +525,9 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_c=
oexist *bt_coexist)
 		}
 	} else if (numOfDiffProfile >=3D 3) {
 		if (pBtLinkInfo->bScoExist) {
-			if (
-				pBtLinkInfo->bHidExist &&
-				pBtLinkInfo->bPanExist &&
-				pBtLinkInfo->bA2dpExist
+			if (pBtLinkInfo->bHidExist &&
+			    pBtLinkInfo->bPanExist &&
+			    pBtLinkInfo->bA2dpExist
 			) {
 				if (!bBtHsOn)
 					algorithm =3D BT_8723B_1ANT_COEX_ALGO_PANEDR_HID;
@@ -593,9 +539,8 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_co=
exist *bt_coexist)
 	return algorithm;
 }
=20
-static void halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(
-	struct btc_coexist *bt_coexist, bool bLowPenaltyRa
-)
+static void halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(struct btc_coexist =
*bt_coexist,
+						       bool bLowPenaltyRa)
 {
 	u8 H2C_Parameter[6] =3D {0};
=20
@@ -612,9 +557,8 @@ static void halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(
 	bt_coexist->fBtcFillH2c(bt_coexist, 0x69, 6, H2C_Parameter);
 }
=20
-static void halbtc8723b1ant_LowPenaltyRa(
-	struct btc_coexist *bt_coexist, bool force_exec, bool bLowPenaltyRa
-)
+static void halbtc8723b1ant_LowPenaltyRa(struct btc_coexist *bt_coexist,
+					 bool force_exec, bool bLowPenaltyRa)
 {
 	pCoexDm->bCurLowPenaltyRa =3D bLowPenaltyRa;
=20
@@ -622,19 +566,17 @@ static void halbtc8723b1ant_LowPenaltyRa(
 		if (pCoexDm->bPreLowPenaltyRa =3D=3D pCoexDm->bCurLowPenaltyRa)
 			return;
 	}
-	halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(
-		bt_coexist, pCoexDm->bCurLowPenaltyRa
-	);
+	halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(bt_coexist,
+						   pCoexDm->bCurLowPenaltyRa);
=20
 	pCoexDm->bPreLowPenaltyRa =3D pCoexDm->bCurLowPenaltyRa;
 }
=20
-static void halbtc8723b1ant_SetCoexTable(
-	struct btc_coexist *bt_coexist,
-	u32 val0x6c0,
-	u32 val0x6c4,
-	u32 val0x6c8,
-	u8 val0x6cc
+static void halbtc8723b1ant_SetCoexTable(struct btc_coexist *bt_coexist,
+					 u32 val0x6c0,
+					 u32 val0x6c4,
+					 u32 val0x6c8,
+					 u8 val0x6cc
 )
 {
 	bt_coexist->fBtcWrite4Byte(bt_coexist, 0x6c0, val0x6c0);
@@ -646,13 +588,12 @@ static void halbtc8723b1ant_SetCoexTable(
 	bt_coexist->fBtcWrite1Byte(bt_coexist, 0x6cc, val0x6cc);
 }
=20
-static void halbtc8723b1ant_CoexTable(
-	struct btc_coexist *bt_coexist,
-	bool force_exec,
-	u32 val0x6c0,
-	u32 val0x6c4,
-	u32 val0x6c8,
-	u8 val0x6cc
+static void halbtc8723b1ant_CoexTable(struct btc_coexist *bt_coexist,
+				      bool force_exec,
+				      u32 val0x6c0,
+				      u32 val0x6c4,
+				      u32 val0x6c8,
+				      u8 val0x6cc
 )
 {
 	pCoexDm->curVal0x6c0 =3D val0x6c0;
@@ -661,8 +602,7 @@ static void halbtc8723b1ant_CoexTable(
 	pCoexDm->curVal0x6cc =3D val0x6cc;
=20
 	if (!force_exec) {
-		if (
-			(pCoexDm->preVal0x6c0 =3D=3D pCoexDm->curVal0x6c0) &&
+		if ((pCoexDm->preVal0x6c0 =3D=3D pCoexDm->curVal0x6c0) &&
 		    (pCoexDm->preVal0x6c4 =3D=3D pCoexDm->curVal0x6c4) &&
 		    (pCoexDm->preVal0x6c8 =3D=3D pCoexDm->curVal0x6c8) &&
 		    (pCoexDm->preVal0x6cc =3D=3D pCoexDm->curVal0x6cc)
@@ -670,9 +610,7 @@ static void halbtc8723b1ant_CoexTable(
 			return;
 	}
=20
-	halbtc8723b1ant_SetCoexTable(
-		bt_coexist, val0x6c0, val0x6c4, val0x6c8, val0x6cc
-	);
+	halbtc8723b1ant_SetCoexTable(bt_coexist, val0x6c0, val0x6c4, val0x6c8, va=
l0x6cc);
=20
 	pCoexDm->preVal0x6c0 =3D pCoexDm->curVal0x6c0;
 	pCoexDm->preVal0x6c4 =3D pCoexDm->curVal0x6c4;
@@ -680,61 +618,82 @@ static void halbtc8723b1ant_CoexTable(
 	pCoexDm->preVal0x6cc =3D pCoexDm->curVal0x6cc;
 }
=20
-static void halbtc8723b1ant_CoexTableWithType(
-	struct btc_coexist *bt_coexist, bool force_exec, u8 type
-)
+static void halbtc8723b1ant_CoexTableWithType(struct btc_coexist *bt_coexi=
st, bool force_exec,
+					      u8 type)
 {
 	pCoexSta->nCoexTableType =3D type;
=20
 	switch (type) {
 	case 0:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0x55555555, 0x55555555, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0x55555555,
+					  0x55555555,
+					  0xffffff,
+					  0x3);
 		break;
 	case 1:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0x55555555, 0x5a5a5a5a, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0x55555555,
+					  0x5a5a5a5a,
+					  0xffffff,
+					  0x3);
 		break;
 	case 2:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0x5a5a5a5a, 0x5a5a5a5a, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0x5a5a5a5a,
+					  0x5a5a5a5a,
+					  0xffffff,
+					  0x3);
 		break;
 	case 3:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0xaaaa5555, 0xaaaa5a5a, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0xaaaa5555,
+					  0xaaaa5a5a,
+					  0xffffff,
+					  0x3);
 		break;
 	case 4:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0x55555555, 0xaaaa5a5a, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0x55555555,
+					  0xaaaa5a5a,
+					  0xffffff,
+					  0x3);
 		break;
 	case 5:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0x5a5a5a5a, 0xaaaa5a5a, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0x5a5a5a5a,
+					  0xaaaa5a5a,
+					  0xffffff,
+					  0x3);
 		break;
 	case 6:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0x55555555, 0xaaaaaaaa, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0x55555555,
+					  0xaaaaaaaa,
+					  0xffffff,
+					  0x3);
 		break;
 	case 7:
-		halbtc8723b1ant_CoexTable(
-			bt_coexist, force_exec, 0xaaaaaaaa, 0xaaaaaaaa, 0xffffff, 0x3
-		);
+		halbtc8723b1ant_CoexTable(bt_coexist,
+					  force_exec,
+					  0xaaaaaaaa,
+					  0xaaaaaaaa,
+					  0xffffff,
+					  0x3);
 		break;
 	default:
 		break;
 	}
 }
=20
-static void halbtc8723b1ant_SetFwIgnoreWlanAct(
-	struct btc_coexist *bt_coexist, bool bEnable
-)
+static void halbtc8723b1ant_SetFwIgnoreWlanAct(struct btc_coexist *bt_coex=
ist, bool bEnable)
 {
 	u8 H2C_Parameter[1] =3D {0};
=20
@@ -744,8 +703,9 @@ static void halbtc8723b1ant_SetFwIgnoreWlanAct(
 	bt_coexist->fBtcFillH2c(bt_coexist, 0x63, 1, H2C_Parameter);
 }
=20
-static void halbtc8723b1ant_IgnoreWlanAct(
-	struct btc_coexist *bt_coexist, bool force_exec, bool bEnable
+static void halbtc8723b1ant_IgnoreWlanAct(struct btc_coexist *bt_coexist,
+					  bool force_exec,
+					  bool bEnable
 )
 {
 	pCoexDm->bCurIgnoreWlanAct =3D bEnable;
@@ -759,9 +719,7 @@ static void halbtc8723b1ant_IgnoreWlanAct(
 	pCoexDm->bPreIgnoreWlanAct =3D pCoexDm->bCurIgnoreWlanAct;
 }
=20
-static void halbtc8723b1ant_SetLpsRpwm(
-	struct btc_coexist *bt_coexist, u8 lpsVal, u8 rpwmVal
-)
+static void halbtc8723b1ant_SetLpsRpwm(struct btc_coexist *bt_coexist, u8 =
lpsVal, u8 rpwmVal)
 {
 	u8 lps =3D lpsVal;
 	u8 rpwm =3D rpwmVal;
@@ -770,17 +728,18 @@ static void halbtc8723b1ant_SetLpsRpwm(
 	bt_coexist->fBtcSet(bt_coexist, BTC_SET_U1_RPWM_VAL, &rpwm);
 }
=20
-static void halbtc8723b1ant_LpsRpwm(
-	struct btc_coexist *bt_coexist, bool force_exec, u8 lpsVal, u8 rpwmVal
+static void halbtc8723b1ant_LpsRpwm(struct btc_coexist *bt_coexist,
+				    bool force_exec,
+				    u8 lpsVal,
+				    u8 rpwmVal
 )
 {
 	pCoexDm->curLps =3D lpsVal;
 	pCoexDm->curRpwm =3D rpwmVal;
=20
 	if (!force_exec) {
-		if (
-			(pCoexDm->preLps =3D=3D pCoexDm->curLps) &&
-			(pCoexDm->preRpwm =3D=3D pCoexDm->curRpwm)
+		if ((pCoexDm->preLps =3D=3D pCoexDm->curLps) &&
+		    (pCoexDm->preRpwm =3D=3D pCoexDm->curRpwm)
 		) {
 			return;
 		}
@@ -791,15 +750,17 @@ static void halbtc8723b1ant_LpsRpwm(
 	pCoexDm->preRpwm =3D pCoexDm->curRpwm;
 }
=20
-static void halbtc8723b1ant_SwMechanism(
-	struct btc_coexist *bt_coexist, bool bLowPenaltyRA
+static void halbtc8723b1ant_SwMechanism(struct btc_coexist *bt_coexist,
+					bool bLowPenaltyRA
 )
 {
 	halbtc8723b1ant_LowPenaltyRa(bt_coexist, NORMAL_EXEC, bLowPenaltyRA);
 }
=20
-static void halbtc8723b1ant_SetAntPath(
-	struct btc_coexist *bt_coexist, u8 antPosType, bool bInitHwCfg, bool bWif=
iOff
+static void halbtc8723b1ant_SetAntPath(struct btc_coexist *bt_coexist,
+				       u8 antPosType,
+				       bool bInitHwCfg,
+				       bool bWifiOff
 )
 {
 	struct btc_board_info *pBoardInfo =3D &bt_coexist->boardInfo;
@@ -984,8 +945,9 @@ static void halbtc8723b1ant_SetAntPath(
 	}
 }
=20
-static void halbtc8723b1ant_SetFwPstdma(
-	struct btc_coexist *bt_coexist, u8 byte1, u8 byte2, u8 byte3, u8 byte4, u=
8 byte5
+static void halbtc8723b1ant_SetFwPstdma(struct btc_coexist *bt_coexist,
+					u8 byte1, u8 byte2, u8 byte3,
+					u8 byte4, u8 byte5
 )
 {
 	u8 H2C_Parameter[5] =3D {0};
@@ -1020,8 +982,9 @@ static void halbtc8723b1ant_SetFwPstdma(
 }
=20
=20
-static void halbtc8723b1ant_PsTdma(
-	struct btc_coexist *bt_coexist, bool force_exec, bool bTurnOn, u8 type
+static void halbtc8723b1ant_PsTdma(struct btc_coexist *bt_coexist,
+				   bool force_exec,
+				   bool bTurnOn, u8 type
 )
 {
 	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
@@ -1037,9 +1000,8 @@ static void halbtc8723b1ant_PsTdma(
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
=20
 	if (!force_exec) {
-		if (
-			(pCoexDm->bPrePsTdmaOn =3D=3D pCoexDm->bCurPsTdmaOn) &&
-			(pCoexDm->prePsTdma =3D=3D pCoexDm->curPsTdma)
+		if ((pCoexDm->bPrePsTdmaOn =3D=3D pCoexDm->bCurPsTdmaOn) &&
+		    (pCoexDm->prePsTdma =3D=3D pCoexDm->curPsTdma)
 		)
 			return;
 	}
@@ -1065,202 +1027,180 @@ static void halbtc8723b1ant_PsTdma(
=20
 		switch (type) {
 		default:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x51, 0x1a, 0x1a, 0x0, psTdmaByte4Val
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x51,
+						    0x1a,
+						    0x1a,
+						    0x0,
+						    psTdmaByte4Val
 			);
 			break;
 		case 1:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist,
-				psTdmaByte0Val,
-				0x3a + nWiFiDurationAdjust,
-				0x03,
-				psTdmaByte3Val,
-				psTdmaByte4Val
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    psTdmaByte0Val,
+						    0x3a + nWiFiDurationAdjust,
+						    0x03,
+						    psTdmaByte3Val,
+						    psTdmaByte4Val
 			);
 			break;
 		case 2:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist,
-				psTdmaByte0Val,
-				0x2d + nWiFiDurationAdjust,
-				0x03,
-				psTdmaByte3Val,
-				psTdmaByte4Val
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    psTdmaByte0Val,
+						    0x2d + nWiFiDurationAdjust,
+						    0x03,
+						    psTdmaByte3Val,
+						    psTdmaByte4Val
 			);
 			break;
 		case 3:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x51, 0x1d, 0x1d, 0x0, 0x10
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x51,
+						    0x1d,
+						    0x1d,
+						    0x0,
+						    0x10
 			);
 			break;
 		case 4:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x93, 0x15, 0x3, 0x14, 0x0
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x93,
+						    0x15,
+						    0x3,
+						    0x14,
+						    0x0
 			);
 			break;
 		case 5:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x61, 0x15, 0x3, 0x11, 0x10
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x61,
+						    0x15,
+						    0x3,
+						    0x11,
+						    0x10
 			);
 			break;
 		case 6:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x61, 0x20, 0x3, 0x11, 0x11
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x61,
+						    0x20,
+						    0x3,
+						    0x11,
+						    0x11
 			);
 			break;
 		case 7:
-			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x13, 0xc, 0x5, 0x0, 0x0);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x13,
+						    0xc,
+						    0x5,
+						    0x0,
+						    0x0
+			);
 			break;
 		case 8:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x93, 0x25, 0x3, 0x10, 0x0
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    0x93,
+						    0x25,
+						    0x3,
+						    0x10,
+						    0x0
 			);
 			break;
 		case 9:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist,
-				psTdmaByte0Val,
-				0x21,
-				0x3,
-				psTdmaByte3Val,
-				psTdmaByte4Val
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    psTdmaByte0Val,
+						    0x21,
+						    0x3,
+						    psTdmaByte3Val,
+						    psTdmaByte4Val
 			);
 			break;
 		case 10:
 			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x13, 0xa, 0xa, 0x0, 0x40);
 			break;
 		case 11:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist,
-				psTdmaByte0Val,
-				0x21,
-				0x03,
-				psTdmaByte3Val,
-				psTdmaByte4Val
+			halbtc8723b1ant_SetFwPstdma(bt_coexist,
+						    psTdmaByte0Val,
+						    0x21,
+						    0x03,
+						    psTdmaByte3Val,
+						    psTdmaByte4Val
 			);
 			break;
 		case 12:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x51, 0x0a, 0x0a, 0x0, 0x50
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x51, 0x0a, 0x0a, 0x0, 0x50);
 			break;
 		case 13:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x51, 0x12, 0x12, 0x0, 0x10
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x51, 0x12, 0x12, 0x0, 0x10);
 			break;
 		case 14:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x51, 0x21, 0x3, 0x10, psTdmaByte4Val
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x51, 0x21, 0x3, 0x10,
+						    psTdmaByte4Val);
 			break;
 		case 15:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x13, 0xa, 0x3, 0x8, 0x0
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x13, 0xa, 0x3, 0x8, 0x0);
 			break;
 		case 16:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x93, 0x15, 0x3, 0x10, 0x0
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x93, 0x15, 0x3, 0x10, 0x0);
 			break;
 		case 18:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x93, 0x25, 0x3, 0x10, 0x0
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x93, 0x25, 0x3, 0x10, 0x0);
 			break;
 		case 20:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x61, 0x3f, 0x03, 0x11, 0x10
-
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x61, 0x3f, 0x03, 0x11, 0x10);
 			break;
 		case 21:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x61, 0x25, 0x03, 0x11, 0x11
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x61, 0x25, 0x03, 0x11, 0x11);
 			break;
 		case 22:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x61, 0x25, 0x03, 0x11, 0x10
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x61, 0x25, 0x03, 0x11, 0x10);
 			break;
 		case 23:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xe3, 0x25, 0x3, 0x31, 0x18
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xe3, 0x25, 0x3, 0x31, 0x18);
 			break;
 		case 24:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xe3, 0x15, 0x3, 0x31, 0x18
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xe3, 0x15, 0x3, 0x31, 0x18);
 			break;
 		case 25:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xe3, 0xa, 0x3, 0x31, 0x18
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xe3, 0xa, 0x3, 0x31, 0x18);
 			break;
 		case 26:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xe3, 0xa, 0x3, 0x31, 0x18
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xe3, 0xa, 0x3, 0x31, 0x18);
 			break;
 		case 27:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xe3, 0x25, 0x3, 0x31, 0x98
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xe3, 0x25, 0x3, 0x31, 0x98);
 			break;
 		case 28:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x69, 0x25, 0x3, 0x31, 0x0
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x69, 0x25, 0x3, 0x31, 0x0);
 			break;
 		case 29:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xab, 0x1a, 0x1a, 0x1, 0x10
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xab, 0x1a, 0x1a, 0x1, 0x10);
 			break;
 		case 30:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x51, 0x30, 0x3, 0x10, 0x10
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x51, 0x30, 0x3, 0x10, 0x10);
 			break;
 		case 31:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xd3, 0x1a, 0x1a, 0x0, 0x58
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xd3, 0x1a, 0x1a, 0x0, 0x58);
 			break;
 		case 32:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x61, 0x35, 0x3, 0x11, 0x11
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x61, 0x35, 0x3, 0x11, 0x11);
 			break;
 		case 33:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xa3, 0x25, 0x3, 0x30, 0x90
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xa3, 0x25, 0x3, 0x30, 0x90);
 			break;
 		case 34:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x53, 0x1a, 0x1a, 0x0, 0x10
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x53, 0x1a, 0x1a, 0x0, 0x10);
 			break;
 		case 35:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x63, 0x1a, 0x1a, 0x0, 0x10
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x63, 0x1a, 0x1a, 0x0, 0x10);
 			break;
 		case 36:
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0xd3, 0x12, 0x3, 0x14, 0x50
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0xd3, 0x12, 0x3, 0x14, 0x50);
 			break;
 		case 40: /*  SoftAP only with no sta associated, BT disable , TDMA mode =
for power saving */
 			/* here softap mode screen off will cost 70-80mA for phone */
-			halbtc8723b1ant_SetFwPstdma(
-				bt_coexist, 0x23, 0x18, 0x00, 0x10, 0x24
-			);
+			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x23, 0x18, 0x00, 0x10, 0x24);
 			break;
 		}
 	} else {
@@ -1269,29 +1209,24 @@ static void halbtc8723b1ant_PsTdma(
 		switch (type) {
 		case 8: /* PTA Control */
 			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x8, 0x0, 0x0, 0x0, 0x0);
-			halbtc8723b1ant_SetAntPath(
-				bt_coexist, BTC_ANT_PATH_PTA, false, false
-			);
+			halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_PTA, false, false);
 			break;
 		case 0:
 		default:  /* Software control, Antenna at BT side */
 			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x0, 0x0, 0x0, 0x0, 0x0);
-			halbtc8723b1ant_SetAntPath(
-				bt_coexist, BTC_ANT_PATH_BT, false, false
-			);
+			halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_BT, false, false);
 			break;
 		case 9:   /* Software control, Antenna at WiFi side */
 			halbtc8723b1ant_SetFwPstdma(bt_coexist, 0x0, 0x0, 0x0, 0x0, 0x0);
-			halbtc8723b1ant_SetAntPath(
-				bt_coexist, BTC_ANT_PATH_WIFI, false, false
-			);
+			halbtc8723b1ant_SetAntPath(bt_coexist, BTC_ANT_PATH_WIFI, false, false);
 			break;
 		}
 	}
=20
 	rssiAdjustVal =3D 0;
-	bt_coexist->fBtcSet(
-		bt_coexist, BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE, &rssiAdjustVal
+	bt_coexist->fBtcSet(bt_coexist,
+			    BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE,
+			    &rssiAdjustVal
 	);
=20
 	/*  update pre state */
@@ -1306,37 +1241,32 @@ static bool halbtc8723b1ant_IsCommonAction(struct b=
tc_coexist *bt_coexist)
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_CONNECTED, &bWifiConnecte=
d);
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
=20
-	if (
-		!bWifiConnected &&
-		pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE
+	if (!bWifiConnected &&
+	    pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE
 	) {
 		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
-	} else if (
-		bWifiConnected &&
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE)
+	} else if (bWifiConnected &&
+		   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE)
 	) {
 		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
-	} else if (
-		!bWifiConnected &&
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
+	} else if (!bWifiConnected &&
+		   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
 	) {
 		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
-	} else if (
-		bWifiConnected &&
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
+	} else if (bWifiConnected &&
+		   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
 	) {
 		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
 		bCommon =3D true;
-	} else if (
-		!bWifiConnected &&
-		(pCoexDm->btStatus !=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
+	} else if (!bWifiConnected &&
+		   (pCoexDm->btStatus !=3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE)
 	) {
 		/* halbtc8723b1ant_SwMechanism(bt_coexist, false); */
=20
@@ -1349,24 +1279,20 @@ static bool halbtc8723b1ant_IsCommonAction(struct b=
tc_coexist *bt_coexist)
 }
=20
=20
-static void halbtc8723b1ant_TdmaDurationAdjustForAcl(
-	struct btc_coexist *bt_coexist, u8 wifiStatus
-)
+static void halbtc8723b1ant_TdmaDurationAdjustForAcl(struct btc_coexist *b=
t_coexist, u8 wifiStatus)
 {
 	static s32 up, dn, m, n, WaitCount;
 	s32 result;   /* 0: no change, +1: increase WiFi duration, -1: decrease W=
iFi duration */
 	u8 retryCount =3D 0, btInfoExt;
=20
-	if (
-		(wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_SCA=
N) ||
-		(wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN) ||
-		(wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT)
+	if ((wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_NON_CONNECTED_ASSO_AUTH_=
SCAN) ||
+	    (wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN) ||
+	    (wifiStatus =3D=3D BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SPECIAL_PKT)
 	) {
-		if (
-			pCoexDm->curPsTdma !=3D 1 &&
-			pCoexDm->curPsTdma !=3D 2 &&
-			pCoexDm->curPsTdma !=3D 3 &&
-			pCoexDm->curPsTdma !=3D 9
+		if (pCoexDm->curPsTdma !=3D 1 &&
+		    pCoexDm->curPsTdma !=3D 2 &&
+		    pCoexDm->curPsTdma !=3D 3 &&
+		    pCoexDm->curPsTdma !=3D 9
 		) {
 			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 			pCoexDm->psTdmaDuAdjType =3D 9;
@@ -1457,9 +1383,8 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAcl(
 		}
=20
 		if (result =3D=3D -1) {
-			if (
-				BT_INFO_8723B_1ANT_A2DP_BASIC_RATE(btInfoExt) &&
-				((pCoexDm->curPsTdma =3D=3D 1) || (pCoexDm->curPsTdma =3D=3D 2))
+			if (BT_INFO_8723B_1ANT_A2DP_BASIC_RATE(btInfoExt) &&
+			    ((pCoexDm->curPsTdma =3D=3D 1) || (pCoexDm->curPsTdma =3D=3D 2))
 			) {
 				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 				pCoexDm->psTdmaDuAdjType =3D 9;
@@ -1474,9 +1399,8 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAcl(
 				pCoexDm->psTdmaDuAdjType =3D 11;
 			}
 		} else if (result =3D=3D 1) {
-			if (
-				BT_INFO_8723B_1ANT_A2DP_BASIC_RATE(btInfoExt) &&
-				((pCoexDm->curPsTdma =3D=3D 1) || (pCoexDm->curPsTdma =3D=3D 2))
+			if (BT_INFO_8723B_1ANT_A2DP_BASIC_RATE(btInfoExt) &&
+			    ((pCoexDm->curPsTdma =3D=3D 1) || (pCoexDm->curPsTdma =3D=3D 2))
 			) {
 				halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 9);
 				pCoexDm->psTdmaDuAdjType =3D 9;
@@ -1492,20 +1416,21 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAc=
l(
 			}
 		}
=20
-		if (
-			pCoexDm->curPsTdma !=3D 1 &&
-			pCoexDm->curPsTdma !=3D 2 &&
-			pCoexDm->curPsTdma !=3D 9 &&
-			pCoexDm->curPsTdma !=3D 11
+		if (pCoexDm->curPsTdma !=3D 1 &&
+		    pCoexDm->curPsTdma !=3D 2 &&
+		    pCoexDm->curPsTdma !=3D 9 &&
+		    pCoexDm->curPsTdma !=3D 11
 		) /*  recover to previous adjust type */
-			halbtc8723b1ant_PsTdma(
-				bt_coexist, NORMAL_EXEC, true, pCoexDm->psTdmaDuAdjType
+			halbtc8723b1ant_PsTdma(bt_coexist,
+					       NORMAL_EXEC,
+					       true,
+					       pCoexDm->psTdmaDuAdjType
 			);
 	}
 }
=20
-static void halbtc8723b1ant_PsTdmaCheckForPowerSaveState(
-	struct btc_coexist *bt_coexist, bool bNewPsState
+static void halbtc8723b1ant_PsTdmaCheckForPowerSaveState(struct btc_coexis=
t *bt_coexist,
+							 bool bNewPsState
 )
 {
 	u8 lpsMode =3D 0x0;
@@ -1526,8 +1451,10 @@ static void halbtc8723b1ant_PsTdmaCheckForPowerSaveS=
tate(
 	}
 }
=20
-static void halbtc8723b1ant_PowerSaveState(
-	struct btc_coexist *bt_coexist, u8 psType, u8 lpsVal, u8 rpwmVal
+static void halbtc8723b1ant_PowerSaveState(struct btc_coexist *bt_coexist,
+					   u8 psType,
+					   u8 lpsVal,
+					   u8 rpwmVal
 )
 {
 	bool bLowPwrDisable =3D false;
@@ -1536,8 +1463,9 @@ static void halbtc8723b1ant_PowerSaveState(
 	case BTC_PS_WIFI_NATIVE:
 		/*  recover to original 32k low power setting */
 		bLowPwrDisable =3D false;
-		bt_coexist->fBtcSet(
-			bt_coexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwrDisable
+		bt_coexist->fBtcSet(bt_coexist,
+				    BTC_SET_ACT_DISABLE_LOW_POWER,
+				    &bLowPwrDisable
 		);
 		bt_coexist->fBtcSet(bt_coexist, BTC_SET_ACT_NORMAL_LPS, NULL);
 		pCoexSta->bForceLpsOn =3D false;
@@ -1547,8 +1475,9 @@ static void halbtc8723b1ant_PowerSaveState(
 		halbtc8723b1ant_LpsRpwm(bt_coexist, NORMAL_EXEC, lpsVal, rpwmVal);
 		/*  when coex force to enter LPS, do not enter 32k low power. */
 		bLowPwrDisable =3D true;
-		bt_coexist->fBtcSet(
-			bt_coexist, BTC_SET_ACT_DISABLE_LOW_POWER, &bLowPwrDisable
+		bt_coexist->fBtcSet(bt_coexist,
+				    BTC_SET_ACT_DISABLE_LOW_POWER,
+				    &bLowPwrDisable
 		);
 		/*  power save must executed before psTdma. */
 		bt_coexist->fBtcSet(bt_coexist, BTC_SET_ACT_ENTER_LPS, NULL);
@@ -1607,10 +1536,9 @@ static void halbtc8723b1ant_ActionBtInquiry(struct b=
tc_coexist *bt_coexist)
 		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, false, 8);
=20
 		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 0);
-	} else if (
-		pBtLinkInfo->bScoExist ||
-		pBtLinkInfo->bHidExist ||
-		pBtLinkInfo->bA2dpExist
+	} else if (pBtLinkInfo->bScoExist ||
+		   pBtLinkInfo->bHidExist ||
+		   pBtLinkInfo->bA2dpExist
 	) {
 		/*  SCO/HID/A2DP busy */
 		halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
@@ -1630,8 +1558,8 @@ static void halbtc8723b1ant_ActionBtInquiry(struct bt=
c_coexist *bt_coexist)
 	}
 }
=20
-static void halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-	struct btc_coexist *bt_coexist, u8 wifiStatus
+static void halbtc8723b1ant_ActionBtScoHidOnlyBusy(struct btc_coexist *bt_=
coexist,
+						   u8 wifiStatus
 )
 {
 	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
@@ -1650,8 +1578,8 @@ static void halbtc8723b1ant_ActionBtScoHidOnlyBusy(
 	}
 }
=20
-static void halbtc8723b1ant_ActionWifiConnectedBtAclBusy(
-	struct btc_coexist *bt_coexist, u8 wifiStatus
+static void halbtc8723b1ant_ActionWifiConnectedBtAclBusy(struct btc_coexis=
t *bt_coexist,
+							 u8 wifiStatus
 )
 {
 	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
@@ -1682,16 +1610,14 @@ static void halbtc8723b1ant_ActionWifiConnectedBtAc=
lBusy(
 		pCoexDm->bAutoTdmaAdjust =3D false;
=20
 		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
-	} else if (
-		pBtLinkInfo->bPanOnly ||
-		(pBtLinkInfo->bHidExist && pBtLinkInfo->bPanExist)
+	} else if (pBtLinkInfo->bPanOnly ||
+		   (pBtLinkInfo->bHidExist && pBtLinkInfo->bPanExist)
 	) { /* PAN(OPP, FTP), HID+PAN(OPP, FTP) */
 		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 3);
 		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		pCoexDm->bAutoTdmaAdjust =3D false;
-	} else if (
-		(pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanExist) ||
-		(pBtLinkInfo->bHidExist && pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanE=
xist)
+	} else if ((pBtLinkInfo->bA2dpExist && pBtLinkInfo->bPanExist) ||
+		   (pBtLinkInfo->bHidExist && pBtLinkInfo->bA2dpExist && pBtLinkInfo->bP=
anExist)
 	) { /* A2DP+PAN(OPP, FTP), HID+A2DP+PAN(OPP, FTP) */
 		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 13);
 		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
@@ -1714,9 +1640,7 @@ static void halbtc8723b1ant_ActionWifiNotConnected(st=
ruct btc_coexist *bt_coexis
 	halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 0);
 }
=20
-static void halbtc8723b1ant_ActionWifiNotConnectedScan(
-	struct btc_coexist *bt_coexist
-)
+static void halbtc8723b1ant_ActionWifiNotConnectedScan(struct btc_coexist =
*bt_coexist)
 {
 	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
@@ -1734,12 +1658,11 @@ static void halbtc8723b1ant_ActionWifiNotConnectedS=
can(
 			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
 			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		}
-	} else if (
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
+	} else if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
+		   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 	) {
-		halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-			bt_coexist, BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
+		halbtc8723b1ant_ActionBtScoHidOnlyBusy(bt_coexist,
+						       BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
 		);
 	} else {
 		/* Bryant Add */
@@ -1748,19 +1671,16 @@ static void halbtc8723b1ant_ActionWifiNotConnectedS=
can(
 	}
 }
=20
-static void halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(
-	struct btc_coexist *bt_coexist
-)
+static void halbtc8723b1ant_ActionWifiNotConnectedAssoAuth(struct btc_coex=
ist *bt_coexist)
 {
 	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
 	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
-	if (
-		(pBtLinkInfo->bScoExist) ||
-		(pBtLinkInfo->bHidExist) ||
-		(pBtLinkInfo->bA2dpExist)
+	if ((pBtLinkInfo->bScoExist) ||
+	    (pBtLinkInfo->bHidExist) ||
+	    (pBtLinkInfo->bA2dpExist)
 	) {
 		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
 		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
@@ -1791,12 +1711,11 @@ static void halbtc8723b1ant_ActionWifiConnectedScan=
(struct btc_coexist *bt_coexi
 			halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 20);
 			halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
 		}
-	} else if (
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
+	} else if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
+		   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 	) {
-		halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-			bt_coexist, BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
+		halbtc8723b1ant_ActionBtScoHidOnlyBusy(bt_coexist,
+						       BT_8723B_1ANT_WIFI_STATUS_CONNECTED_SCAN
 		);
 	} else {
 		/* Bryant Add */
@@ -1805,19 +1724,16 @@ static void halbtc8723b1ant_ActionWifiConnectedScan=
(struct btc_coexist *bt_coexi
 	}
 }
=20
-static void halbtc8723b1ant_ActionWifiConnectedSpecialPacket(
-	struct btc_coexist *bt_coexist
-)
+static void halbtc8723b1ant_ActionWifiConnectedSpecialPacket(struct btc_co=
exist *bt_coexist)
 {
 	struct btc_bt_link_info *pBtLinkInfo =3D &bt_coexist->btLinkInfo;
=20
 	halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0);
=20
 	/*  tdma and coex table */
-	if (
-		(pBtLinkInfo->bScoExist) ||
-		(pBtLinkInfo->bHidExist) ||
-		(pBtLinkInfo->bA2dpExist)
+	if ((pBtLinkInfo->bScoExist) ||
+	    (pBtLinkInfo->bHidExist) ||
+	    (pBtLinkInfo->bA2dpExist)
 	) {
 		halbtc8723b1ant_PsTdma(bt_coexist, NORMAL_EXEC, true, 32);
 		halbtc8723b1ant_CoexTableWithType(bt_coexist, NORMAL_EXEC, 4);
@@ -1857,30 +1773,34 @@ static void halbtc8723b1ant_ActionWifiConnected(str=
uct btc_coexist *bt_coexist)
 	bt_coexist->fBtcGet(bt_coexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy);
=20
 	/*  power save state */
-	if (
-		!bApEnable &&
-		pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY &&
-		!bt_coexist->btLinkInfo.bHidOnly
+	if (!bApEnable &&
+	    pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY &&
+	    !bt_coexist->btLinkInfo.bHidOnly
 	) {
 		if (bt_coexist->btLinkInfo.bA2dpOnly) { /* A2DP */
 			if (!wifi_busy)
-				halbtc8723b1ant_PowerSaveState(
-					bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0
+				halbtc8723b1ant_PowerSaveState(bt_coexist,
+							       BTC_PS_WIFI_NATIVE,
+							       0x0,
+							       0x0
 				);
 			else { /* busy */
 				if  (pCoexSta->nScanAPNum >=3D BT_8723B_1ANT_WIFI_NOISY_THRESH)  /* no=
 force LPS, no PS-TDMA, use pure TDMA */
-					halbtc8723b1ant_PowerSaveState(
-						bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0
+					halbtc8723b1ant_PowerSaveState(bt_coexist,
+								       BTC_PS_WIFI_NATIVE,
+								       0x0,
+								       0x0
 					);
 				else
-					halbtc8723b1ant_PowerSaveState(
-						bt_coexist, BTC_PS_LPS_ON, 0x50, 0x4
+					halbtc8723b1ant_PowerSaveState(bt_coexist,
+								       BTC_PS_LPS_ON,
+								       0x50,
+								       0x4
 					);
 			}
-		} else if (
-			(!pCoexSta->bPanExist) &&
-			(!pCoexSta->bA2dpExist) &&
-			(!pCoexSta->bHidExist)
+		} else if ((!pCoexSta->bPanExist) &&
+			   (!pCoexSta->bA2dpExist) &&
+			   (!pCoexSta->bHidExist)
 		)
 			halbtc8723b1ant_PowerSaveState(bt_coexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0=
);
 		else
@@ -1891,13 +1811,11 @@ static void halbtc8723b1ant_ActionWifiConnected(str=
uct btc_coexist *bt_coexist)
 	/*  tdma and coex table */
 	if (!wifi_busy) {
 		if (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) {
-			halbtc8723b1ant_ActionWifiConnectedBtAclBusy(
-				bt_coexist,
+			halbtc8723b1ant_ActionWifiConnectedBtAclBusy(bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_IDLE
 			);
-		} else if (
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
+		} else if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
+			   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 		) {
 			halbtc8723b1ant_ActionBtScoHidOnlyBusy(bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_IDLE);
@@ -1911,16 +1829,13 @@ static void halbtc8723b1ant_ActionWifiConnected(str=
uct btc_coexist *bt_coexist)
 		}
 	} else {
 		if (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) {
-			halbtc8723b1ant_ActionWifiConnectedBtAclBusy(
-				bt_coexist,
+			halbtc8723b1ant_ActionWifiConnectedBtAclBusy(bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY
 			);
-		} else if (
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
-			(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
+		} else if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
+			   (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 		) {
-			halbtc8723b1ant_ActionBtScoHidOnlyBusy(
-				bt_coexist,
+			halbtc8723b1ant_ActionBtScoHidOnlyBusy(bt_coexist,
 				BT_8723B_1ANT_WIFI_STATUS_CONNECTED_BUSY
 			);
 		} else {
@@ -2001,29 +1916,25 @@ static void halbtc8723b1ant_RunCoexistMechanism(str=
uct btc_coexist *bt_coexist)
 	if (pCoexSta->bUnderIps)
 		return;
=20
-	if (
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
+	if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
+	    (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
+	    (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 	){
 		bIncreaseScanDevNum =3D true;
 	}
=20
-	bt_coexist->fBtcSet(
-		bt_coexist,
-		BTC_SET_BL_INC_SCAN_DEV_NUM,
-		&bIncreaseScanDevNum
+	bt_coexist->fBtcSet(bt_coexist,
+			    BTC_SET_BL_INC_SCAN_DEV_NUM,
+			    &bIncreaseScanDevNum
 	);
-	bt_coexist->fBtcGet(
-		bt_coexist,
-		BTC_GET_BL_WIFI_CONNECTED,
-		&bWifiConnected
+	bt_coexist->fBtcGet(bt_coexist,
+			    BTC_GET_BL_WIFI_CONNECTED,
+			    &bWifiConnected
 	);
=20
-	bt_coexist->fBtcGet(
-		bt_coexist,
-		BTC_GET_U4_WIFI_LINK_STATUS,
-		&wifiLinkStatus
+	bt_coexist->fBtcGet(bt_coexist,
+			    BTC_GET_U4_WIFI_LINK_STATUS,
+			    &wifiLinkStatus
 	);
 	numOfWifiLink =3D wifiLinkStatus >> 16;
=20
@@ -2099,10 +2010,9 @@ static void halbtc8723b1ant_InitCoexDm(struct btc_co=
exist *bt_coexist)
 	pCoexSta->popEventCnt =3D 0;
 }
=20
-static void halbtc8723b1ant_InitHwConfig(
-	struct btc_coexist *bt_coexist,
-	bool bBackUp,
-	bool bWifiOnly
+static void halbtc8723b1ant_InitHwConfig(struct btc_coexist *bt_coexist,
+					 bool bBackUp,
+					 bool bWifiOnly
 )
 {
 	bt_coexist->fBtcWrite1ByteBitMask(bt_coexist, 0x550, 0x8, 0x1);  /* enabl=
e TBTT nterrupt */
@@ -2253,9 +2163,7 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist =
*bt_coexist, u8 type)
 	} else {
 		pCoexSta->bWiFiIsHighPriTask =3D false;
=20
-		bt_coexist->fBtcGet(
-			bt_coexist, BTC_GET_U1_AP_NUM, &pCoexSta->nScanAPNum
-		);
+		bt_coexist->fBtcGet(bt_coexist, BTC_GET_U1_AP_NUM, &pCoexSta->nScanAPNum=
);
 	}
=20
 	if (bt_coexist->btInfo.bBtDisabled)
@@ -2271,8 +2179,7 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist =
*bt_coexist, u8 type)
=20
 	if (numOfWifiLink >=3D 2) {
 		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
-		halbtc8723b1ant_LimitedRx(
-			bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_buf_size, agg_buf_size
+		halbtc8723b1ant_LimitedRx(bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_bu=
f_size, agg_buf_size
 		);
 		halbtc8723b1ant_ActionWifiMultiPort(bt_coexist);
 		return;
@@ -2307,10 +2214,9 @@ void EXhalbtc8723b1ant_ConnectNotify(struct btc_coex=
ist *bt_coexist, u8 type)
 	bool bt_ctrl_agg_buf_size =3D false;
 	u8 agg_buf_size =3D 5;
=20
-	if (
-		bt_coexist->bManualControl ||
-		bt_coexist->bStopCoexDm ||
-		bt_coexist->btInfo.bBtDisabled
+	if (bt_coexist->bManualControl ||
+	    bt_coexist->bStopCoexDm ||
+	    bt_coexist->btInfo.bBtDisabled
 	)
 		return;
=20
@@ -2358,10 +2264,9 @@ void EXhalbtc8723b1ant_MediaStatusNotify(struct btc_=
coexist *bt_coexist, u8 type
 	u8 wifiCentralChnl;
 	bool wifi_under_b_mode =3D false;
=20
-	if (
-		bt_coexist->bManualControl ||
-		bt_coexist->bStopCoexDm ||
-		bt_coexist->btInfo.bBtDisabled
+	if (bt_coexist->bManualControl ||
+	    bt_coexist->bStopCoexDm ||
+	    bt_coexist->btInfo.bBtDisabled
 	)
 		return;
=20
@@ -2417,17 +2322,15 @@ void EXhalbtc8723b1ant_SpecialPacketNotify(struct b=
tc_coexist *bt_coexist, u8 ty
 	bool bt_ctrl_agg_buf_size =3D false;
 	u8 agg_buf_size =3D 5;
=20
-	if (
-		bt_coexist->bManualControl ||
-		bt_coexist->bStopCoexDm ||
-		bt_coexist->btInfo.bBtDisabled
+	if (bt_coexist->bManualControl ||
+	    bt_coexist->bStopCoexDm ||
+	    bt_coexist->btInfo.bBtDisabled
 	)
 		return;
=20
-	if (
-		type =3D=3D BTC_PACKET_DHCP ||
-		type =3D=3D BTC_PACKET_EAPOL ||
-		type =3D=3D BTC_PACKET_ARP
+	if (type =3D=3D BTC_PACKET_DHCP ||
+	    type =3D=3D BTC_PACKET_EAPOL ||
+	    type =3D=3D BTC_PACKET_ARP
 	) {
 		if (type =3D=3D BTC_PACKET_ARP) {
 			pCoexDm->nArpCnt++;
@@ -2445,15 +2348,16 @@ void EXhalbtc8723b1ant_SpecialPacketNotify(struct b=
tc_coexist *bt_coexist, u8 ty
=20
 	pCoexSta->specialPktPeriodCnt =3D 0;
=20
-	bt_coexist->fBtcGet(
-		bt_coexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkStatus
-	);
+	bt_coexist->fBtcGet(bt_coexist, BTC_GET_U4_WIFI_LINK_STATUS, &wifiLinkSta=
tus);
 	numOfWifiLink =3D wifiLinkStatus >> 16;
=20
 	if (numOfWifiLink >=3D 2) {
 		halbtc8723b1ant_LimitedTx(bt_coexist, NORMAL_EXEC, 0, 0, 0, 0);
-		halbtc8723b1ant_LimitedRx(
-			bt_coexist, NORMAL_EXEC, false, bt_ctrl_agg_buf_size, agg_buf_size
+		halbtc8723b1ant_LimitedRx(bt_coexist,
+					  NORMAL_EXEC,
+					  false,
+					  bt_ctrl_agg_buf_size,
+					  agg_buf_size
 		);
 		halbtc8723b1ant_ActionWifiMultiPort(bt_coexist);
 		return;
@@ -2468,17 +2372,14 @@ void EXhalbtc8723b1ant_SpecialPacketNotify(struct b=
tc_coexist *bt_coexist, u8 ty
 		return;
 	}
=20
-	if (
-		type =3D=3D BTC_PACKET_DHCP ||
-		type =3D=3D BTC_PACKET_EAPOL ||
-		((type =3D=3D BTC_PACKET_ARP) && (pCoexSta->bWiFiIsHighPriTask))
+	if (type =3D=3D BTC_PACKET_DHCP ||
+	    type =3D=3D BTC_PACKET_EAPOL ||
+	    ((type =3D=3D BTC_PACKET_ARP) && (pCoexSta->bWiFiIsHighPriTask))
 	)
 		halbtc8723b1ant_ActionWifiConnectedSpecialPacket(bt_coexist);
 }
=20
-void EXhalbtc8723b1ant_BtInfoNotify(
-	struct btc_coexist *bt_coexist, u8 *tmpBuf, u8 length
-)
+void EXhalbtc8723b1ant_BtInfoNotify(struct btc_coexist *bt_coexist, u8 *tm=
pBuf, u8 length)
 {
 	u8 btInfo =3D 0;
 	u8 i, rspSource =3D 0;
@@ -2585,9 +2486,8 @@ void EXhalbtc8723b1ant_BtInfoNotify(
 	} else if (btInfo =3D=3D BT_INFO_8723B_1ANT_B_CONNECTION)	{
 		/*  connection exists but no busy */
 		pCoexDm->btStatus =3D BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE;
-	} else if (
-		(btInfo & BT_INFO_8723B_1ANT_B_SCO_ESCO) ||
-		(btInfo & BT_INFO_8723B_1ANT_B_SCO_BUSY)
+	} else if ((btInfo & BT_INFO_8723B_1ANT_B_SCO_ESCO) ||
+		   (btInfo & BT_INFO_8723B_1ANT_B_SCO_BUSY)
 	) {
 		pCoexDm->btStatus =3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY;
 	} else if (btInfo & BT_INFO_8723B_1ANT_B_ACL_BUSY) {
@@ -2599,10 +2499,9 @@ void EXhalbtc8723b1ant_BtInfoNotify(
 		pCoexDm->btStatus =3D BT_8723B_1ANT_BT_STATUS_MAX;
 	}
=20
-	if (
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
-		(pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
+	if ((pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_BUSY) ||
+	    (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_SCO_BUSY) ||
+	    (pCoexDm->btStatus =3D=3D BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY)
 	)
 		bBtBusy =3D true;
 	else
@@ -2656,9 +2555,8 @@ void EXhalbtc8723b1ant_Periodical(struct btc_coexist =
*bt_coexist)
 	halbtc8723b1ant_MonitorBtCtr(bt_coexist);
 	halbtc8723b1ant_MonitorWiFiCtr(bt_coexist);
=20
-	if (
-		halbtc8723b1ant_IsWifiStatusChanged(bt_coexist) ||
-		pCoexDm->bAutoTdmaAdjust
+	if (halbtc8723b1ant_IsWifiStatusChanged(bt_coexist) ||
+	    pCoexDm->bAutoTdmaAdjust
 	)
 		halbtc8723b1ant_RunCoexistMechanism(bt_coexist);
=20
--=20
2.43.0
From nobody Tue Apr 29 09:42:32 2025
Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com
 [209.85.128.43])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 023AC20E01D
	for <linux-kernel@vger.kernel.org>; Tue,  1 Apr 2025 17:00:20 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
 arc=none smtp.client-ip=209.85.128.43
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1743526823; cv=none;
 b=B7zWFT/cwnEkxciOzfM0fpWT+V92VPcuHwnfECiSAZ6upi+mV2vg06KXouLllaIbEzlyqzVAjPLdU0FYpled3Was7mbsZXf6H9Rr+R5padW5oo4CMhcE0LuF+Aw/1vxxSE5vQF8OBcJSYE/tyI1puvSBKxY15MmwbknUBJJq1wE=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1743526823; c=relaxed/simple;
	bh=70T7ff+cvTgy9HmQcmQ+w6+CJzqiILA3azoHraLtg/4=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version;
 b=tdx28fYkHgjkvITzfb0MZwZ5rNKRTVnAK6jDmVCwD6NTiMGY8oarYpOCqfypafbVdBkVIQ4bv52Y0y9dE6A38233EtB4F+KHU0Z8n7sjdujvpkPVxzaLml3JNVZ0erZckiFfxbnkRjtFNmXMKjUgAV9k3KREBaoyl9TY7uKrv40=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com;
 spf=pass smtp.mailfrom=gmail.com;
 dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b=RsVq+tzB; arc=none smtp.client-ip=209.85.128.43
Authentication-Results: smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
 spf=pass smtp.mailfrom=gmail.com
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com
 header.b="RsVq+tzB"
Received: by mail-wm1-f43.google.com with SMTP id
 5b1f17b1804b1-43d2d952eb1so40814705e9.1
        for <linux-kernel@vger.kernel.org>;
 Tue, 01 Apr 2025 10:00:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743526819; x=1744131619;
 darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to;
        bh=SvVOyjDeuKJzEI0Ln+MX+oZNgFkv015EO/qfO7rmFtM=;
        b=RsVq+tzBYr0pi2Xv7dRzYBnzicsWplXUh3WUhsJmZ2AXbZTFggomHzvyF7gO7Wjz17
         FYEhzpumb45Bsa8aITD1oQaRezqf3r5pIpOumwxSYIzqsLifxqgW02flANqb6CSb1ig9
         0PmJ8752rlAuoHYkXWaIoZ563Hea902tBtfbvCqswrjN8hRVDwk1HNZQCKfEgI5lZHYs
         RQvIEmZKvXBL2NvRld/LbPvFuCrtlHmYgWte19ujUs6aHLvD5oa+3drN5ybxb0YgPW42
         sKm+AveDzrzUpMk9AUx3YqPBomQCQg50Zwp8MduEe6TJZITxXW42Kpl8P2hdTPbETQQr
         jh5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743526819; x=1744131619;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=SvVOyjDeuKJzEI0Ln+MX+oZNgFkv015EO/qfO7rmFtM=;
        b=C4nR1B6sfA6Q8xQf3blrlef06F8swcwNh7wNzp3kPuEtSZjEF/Em6RkSxkKQ0/xOSI
         qv9w/7DzjTG7WlgkebsFDCDK8sqNW6zx8/Kdv0hhk/0Tu5F5cHkdRV4kzRllEZQpAdZt
         EeqdY/hQ8Zb/As3qKL04WDlsIs3wEc15vcvRS+XsUMevNyPqKUB7S9wAVjVzz+7zvhHT
         dNg6v99K2E991f+IKf6hFcxF1QmDJ1okVdL7DsuOAPu6hN/8CeMKD0crwEs0fGxYfaPi
         cEy/yeCzSiVYL3bgvtQfxOQckglveHGyTWLuEBg4b/BmrtqUksh3SMEIzn92A6gznnvS
         zmoQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCVmLuqcpj7qukuP5tdl7LxIoMWtJyx1tjmh0c629UFeRUm5s48qaKhbcIrvdkPq+ssdCoTZo3JP9h2Hdvk=@vger.kernel.org
X-Gm-Message-State: AOJu0Yz3/7qUaxf2Pldo19E8wxgZ4NRZyvx9kA+9NsYfxD5KHRy2N1Xs
	DyNMdFNBkHmfc4B6yJ75C6PMNaIzgypUC9MQ+b+OEgW09WNQnGPz
X-Gm-Gg: ASbGnctf2QC62sDdd95O3eZ6c8S4Hv6GJeByVdnmnlHDl+Pm429OhMtykaAO6puEvh7
	SSCIJPwGo6vtBEOcRkeQdy0wnAJZgFoo3UCOH9I48l/W6Q+8ZCAcx9aShr7VlLYuCirIC5SkID0
	ztKxNNbxdCWcapFDPUyE6wUeAK+l8hLX+BChdqRTpnix9799K8c0FnbyXKYTW/Bfzo3AkEZ7lWF
	0wlkDgn2diIJXp8a44BxujbR+xqLNPNyiR3yEmkcMr3iuluOaxp0Xv+zd0jOXuaQZwVqjnftowj
	0QO3rc4WccTEWMm5Ly9budMzVCFrz4m9NvGM7XI=
X-Google-Smtp-Source: 
 AGHT+IGk+Bp+mzmPj2lLL07JX/Nje7UXGMoiYywoqCB+dnmAXU2NQBOf6gLoy73xAVKKjLFPffdhZw==
X-Received: by 2002:a05:6000:4282:b0:391:3bba:7f18 with SMTP id
 ffacd0b85a97d-39c120de348mr11435921f8f.12.1743526819194;
        Tue, 01 Apr 2025 10:00:19 -0700 (PDT)
Received: from pc.. ([41.206.42.66])
        by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d8fccfe2fsm161520215e9.22.2025.04.01.10.00.16
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Apr 2025 10:00:18 -0700 (PDT)
From: Erick Karanja <karanja99erick@gmail.com>
To: gregkh@linuxfoundation.org,
	outreachy@lists.linux.dev
Cc: karanja99erick@gmail.com,
	philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 5/5] staging: rtl8723bs: no space before tabs
Date: Tue,  1 Apr 2025 19:59:37 +0300
Message-ID: 
 <4e39b1295d68aea947aa5757e3148a2e401b72bc.1743524096.git.karanja99erick@gmail.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <cover.1743524096.git.karanja99erick@gmail.com>
References: <cover.1743524096.git.karanja99erick@gmail.com>
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
List-Id: <linux-kernel.vger.kernel.org>
List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Remove spaces before tabs to comply with the Linux kernel coding style
guidelines. Proper indentation using tabs improves code consistency
and readability.

Reported by checkpatch:

    WARNING: please, no space before tabs

Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
---
 drivers/staging/rtl8723bs/hal/hal_btcoex.c | 33 ++++------------------
 1 file changed, 6 insertions(+), 27 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/r=
tl8723bs/hal/hal_btcoex.c
index 9105594d2dde..44f73baf1cb4 100644
--- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c
+++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c
@@ -9,14 +9,14 @@
 #include <hal_btcoex.h>
 #include <Mp_Precomp.h>
=20
-/* 		Global variables */
+/*Global variables */
=20
 struct btc_coexist GLBtCoexist;
 static u8 GLBtcWiFiInScanState;
 static u8 GLBtcWiFiInIQKState;
=20
 /*  */
-/* 		Debug related function */
+/*Debug related function */
 /*  */
 static u8 halbtcoutsrc_IsBtCoexistAvailable(struct btc_coexist *pBtCoexist)
 {
@@ -84,9 +84,9 @@ static void halbtcoutsrc_LeaveLowPower(struct btc_coexist=
 *pBtCoexist)
 	ready =3D _FAIL;
 #ifdef LPS_RPWM_WAIT_MS
 	timeout =3D LPS_RPWM_WAIT_MS;
-#else /*  !LPS_RPWM_WAIT_MS */
+#else
 	timeout =3D 30;
-#endif /*  !LPS_RPWM_WAIT_MS */
+#endif
=20
 	stime =3D jiffies;
 	do {
@@ -401,9 +401,6 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getTyp=
e, void *pOutBuf)
=20
 	case BTC_GET_U1_MAC_PHY_MODE:
 		*pu8 =3D BTC_SMSP;
-/* 			*pU1Tmp =3D BTC_DMSP; */
-/* 			*pU1Tmp =3D BTC_DMDP; */
-/* 			*pU1Tmp =3D BTC_MP_UNKNOWN; */
 		break;
=20
 	case BTC_GET_U1_AP_NUM:
@@ -561,7 +558,7 @@ static u8 halbtcoutsrc_Set(void *pBtcContext, u8 setTyp=
e, void *pInBuf)
 }
=20
 /*  */
-/* 		IO related function */
+/* IO related function */
 /*  */
 static u8 halbtcoutsrc_Read1Byte(void *pBtcContext, u32 RegAddr)
 {
@@ -772,7 +769,7 @@ static void halbtcoutsrc_FillH2cCmd(void *pBtcContext, =
u8 elementId, u32 cmdLen,
 }
=20
 /*  */
-/* 		Extern functions called by other module */
+/* Extern functions called by other module */
 /*  */
 static u8 EXhalbtcoutsrc_BindBtCoexWithAdapter(void *padapter)
 {
@@ -808,8 +805,6 @@ void hal_btcoex_Initialize(void *padapter)
=20
 	pBtCoexist =3D &GLBtCoexist;
=20
-	/* pBtCoexist->statistics.cntBind++; */
-
 	pBtCoexist->chipInterface =3D BTC_INTF_SDIO;
=20
 	EXhalbtcoutsrc_BindBtCoexWithAdapter(padapter);
@@ -900,14 +895,12 @@ void EXhalbtcoutsrc_IpsNotify(struct btc_coexist *pBt=
Coexist, u8 type)
 		ipsType =3D BTC_IPS_ENTER;
=20
 	/*  All notify is called in cmd thread, don't need to leave low power aga=
in */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_IpsNotify(pBtCoexist, ipsType);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_IpsNotify(pBtCoexist, ipsType);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_LpsNotify(struct btc_coexist *pBtCoexist, u8 type)
@@ -952,14 +945,12 @@ void EXhalbtcoutsrc_ScanNotify(struct btc_coexist *pB=
tCoexist, u8 type)
 	}
=20
 	/*  All notify is called in cmd thread, don't need to leave low power aga=
in */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_ScanNotify(pBtCoexist, scanType);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_ScanNotify(pBtCoexist, scanType);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_ConnectNotify(struct btc_coexist *pBtCoexist, u8 actio=
n)
@@ -978,14 +969,12 @@ void EXhalbtcoutsrc_ConnectNotify(struct btc_coexist =
*pBtCoexist, u8 action)
 		assoType =3D BTC_ASSOCIATE_FINISH;
=20
 	/*  All notify is called in cmd thread, don't need to leave low power aga=
in */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_ConnectNotify(pBtCoexist, assoType);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_ConnectNotify(pBtCoexist, assoType);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_MediaStatusNotify(struct btc_coexist *pBtCoexist, enum
@@ -1006,14 +995,12 @@ void EXhalbtcoutsrc_MediaStatusNotify(struct btc_coe=
xist *pBtCoexist, enum
 		mStatus =3D BTC_MEDIA_DISCONNECT;
=20
 	/*  All notify is called in cmd thread, don't need to leave low power aga=
in */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_MediaStatusNotify(pBtCoexist, mStatus);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_MediaStatusNotify(pBtCoexist, mStatus);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_SpecialPacketNotify(struct btc_coexist *pBtCoexist, u8=
 pktType)
@@ -1037,14 +1024,12 @@ void EXhalbtcoutsrc_SpecialPacketNotify(struct btc_=
coexist *pBtCoexist, u8 pktTy
 	}
=20
 	/*  All notify is called in cmd thread, don't need to leave low power aga=
in */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_SpecialPacketNotify(pBtCoexist, packetType);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_SpecialPacketNotify(pBtCoexist, packetType);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_BtInfoNotify(struct btc_coexist *pBtCoexist, u8 *tmpBu=
f, u8 length)
@@ -1055,14 +1040,12 @@ void EXhalbtcoutsrc_BtInfoNotify(struct btc_coexist=
 *pBtCoexist, u8 *tmpBuf, u8
 	pBtCoexist->statistics.cntBtInfoNotify++;
=20
 	/*  All notify is called in cmd thread, don't need to leave low power aga=
in */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_BtInfoNotify(pBtCoexist, tmpBuf, length);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_BtInfoNotify(pBtCoexist, tmpBuf, length);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_HaltNotify(struct btc_coexist *pBtCoexist)
@@ -1102,14 +1085,12 @@ void EXhalbtcoutsrc_Periodical(struct btc_coexist *=
pBtCoexist)
=20
 	/*  Periodical should be called in cmd thread, */
 	/*  don't need to leave low power again */
-/* 	halbtcoutsrc_LeaveLowPower(pBtCoexist); */
=20
 	if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 2)
 		EXhalbtc8723b2ant_Periodical(pBtCoexist);
 	else if (pBtCoexist->boardInfo.btdmAntNum =3D=3D 1)
 		EXhalbtc8723b1ant_Periodical(pBtCoexist);
=20
-/* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
=20
 void EXhalbtcoutsrc_SetAntNum(u8 type, u8 antNum)
@@ -1119,10 +1100,8 @@ void EXhalbtcoutsrc_SetAntNum(u8 type, u8 antNum)
 		GLBtCoexist.boardInfo.btdmAntNum =3D antNum;
 	} else if (type =3D=3D BT_COEX_ANT_TYPE_ANTDIV) {
 		GLBtCoexist.boardInfo.btdmAntNum =3D antNum;
-		/* GLBtCoexist.boardInfo.btdmAntPos =3D BTC_ANTENNA_AT_MAIN_PORT; */
 	} else if (type =3D=3D BT_COEX_ANT_TYPE_DETECTED) {
 		GLBtCoexist.boardInfo.btdmAntNum =3D antNum;
-		/* GLBtCoexist.boardInfo.btdmAntPos =3D BTC_ANTENNA_AT_MAIN_PORT; */
 	}
 }
=20
--=20
2.43.0