From patchwork Tue May 16 13:19:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9729195 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 860AB602B4 for ; Tue, 16 May 2017 13:20:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 712FF28A26 for ; Tue, 16 May 2017 13:20:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65DE828A39; Tue, 16 May 2017 13:20:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEB8D28A3D for ; Tue, 16 May 2017 13:20:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752953AbdEPNUI (ORCPT ); Tue, 16 May 2017 09:20:08 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34936 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbdEPNUE (ORCPT ); Tue, 16 May 2017 09:20:04 -0400 Received: by mail-oi0-f68.google.com with SMTP id m17so3303973oik.2 for ; Tue, 16 May 2017 06:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=qvetiSp2Pmo0G5RWwx/n7u0YiyqjRvxeCP26m89bOJE=; b=H7ctk3f+js5nQJXyHpdpOxUhiTa+WPFNdwm3yHRrz18YH4h6NKJgYkCOrlWjHMCD+N bKg97KZH/59yi+25VTKfwPqKjYHWG+eDMECrzo/V8ktZi5YdfcbswB9U++hMsdPi4olC 3gAhMU3QY+tj8Dfv0owsW9UvFSjJAX3JrA83hKknENMm96rGlFze2I1SS/6v7v8eppQj Bf/ymB0HHSZ4IUEuN0E5Tp3+BLzcdGIGedNc8Noc9LJHoyLkL9A/N6a+R0DkmMtOs7+a uTphbPh2wkH/DGit0fTXaCW/N+e4DaiwAJjoyIXn1mG35c/FjuPbsF1L4wpNbnCgi/Op j1Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=qvetiSp2Pmo0G5RWwx/n7u0YiyqjRvxeCP26m89bOJE=; b=BEjBaas7EvlNnwouoytJMCdulMfAB1nbVRCOkfMJswHUOUDUlue/CVuEvez5gaeVsW d5yHO78O4uIEHNP6MkMvZe8AhSEmqU6qUZRUUJBhBM7ljMjxqgElyU4f/3nJXl/3dpVs 8l8UTBbrzV/Zywiz5N2CqwD/BEKE/dy5xV0KGhGZxgAA+S4jmvalC6wnl6GyqPupShos 5rkB/X9Pdu4QmqTr0sJteFIx3dedT26SQbc0pAfVuWmgOh00mYqTWUsqLJMSamICcdVH X4mkCqvC1O8ovW2y+ejRrLaBcQhwWeJCsdHBgSwHEp16D6wS4U9HWQBeQjrgopYYxiJ1 nu5A== X-Gm-Message-State: AODbwcCSdN4FoBRE6RDsuwUPl65eWq4EW97l2yQW4VGwsWFhbpB21dWH QDuhcvfVJgFXYtrN X-Received: by 10.157.38.225 with SMTP id i30mr5113668otd.195.1494940803288; Tue, 16 May 2017 06:20:03 -0700 (PDT) Received: from linux-4v1g.suse (cpe-24-31-249-175.kc.res.rr.com. [24.31.249.175]) by smtp.gmail.com with ESMTPSA id k23sm6813543ote.23.2017.05.16.06.20.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 May 2017 06:20:02 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Yan-Hsuan Chuang , Larry Finger , Pkshih , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 02/10] rtlwifi: btcoex: 21a 1ant: fix some coding style issues Date: Tue, 16 May 2017 08:19:49 -0500 Message-Id: <20170516131957.9513-3-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170516131957.9513-1-Larry.Finger@lwfinger.net> References: <20170516131957.9513-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yan-Hsuan Chuang Fix alignment for coding style consistency. Signed-off-by: Yan-Hsuan Chuang Signed-off-by: Larry Finger Cc: Pkshih Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- .../wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c index a5ac07cf0dca..93644bedaa0f 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c @@ -2839,14 +2839,14 @@ void ex_btc8821a1ant_bt_info_notify(struct btc_coexist *btcoexist, } if (BT_INFO_SRC_8821A_1ANT_WIFI_FW != rsp_source) { - coex_sta->bt_retry_cnt = /* [3:0]*/ - coex_sta->bt_info_c2h[rsp_source][2]&0xf; + /* [3:0] */ + coex_sta->bt_retry_cnt = + coex_sta->bt_info_c2h[rsp_source][2] & 0xf; coex_sta->bt_rssi = - coex_sta->bt_info_c2h[rsp_source][3]*2+10; + coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; - coex_sta->bt_info_ext = - coex_sta->bt_info_c2h[rsp_source][4]; + coex_sta->bt_info_ext = coex_sta->bt_info_c2h[rsp_source][4]; /* Here we need to resend some wifi info to BT * because bt is reset and lost the info @@ -2928,11 +2928,11 @@ void ex_btc8821a1ant_bt_info_notify(struct btc_coexist *btcoexist, RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], BtInfoNotify(), BT Connected-idle!!!\n"); } else if ((bt_info&BT_INFO_8821A_1ANT_B_SCO_ESCO) || - (bt_info&BT_INFO_8821A_1ANT_B_SCO_BUSY)) { + (bt_info & BT_INFO_8821A_1ANT_B_SCO_BUSY)) { coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_SCO_BUSY; RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], BtInfoNotify(), BT SCO busy!!!\n"); - } else if (bt_info&BT_INFO_8821A_1ANT_B_ACL_BUSY) { + } else if (bt_info & BT_INFO_8821A_1ANT_B_ACL_BUSY) { if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY != coex_dm->bt_status) coex_dm->auto_tdma_adjust = false; coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_ACL_BUSY;