From patchwork Wed Nov 1 15:29:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 10036495 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 A9E9E603B5 for ; Wed, 1 Nov 2017 15:29:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DB5A201BC for ; Wed, 1 Nov 2017 15:29:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 926FB286AA; Wed, 1 Nov 2017 15:29:38 +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=-4.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID, URIBL_BLACK 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 A2D89201BC for ; Wed, 1 Nov 2017 15:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754553AbdKAP3f (ORCPT ); Wed, 1 Nov 2017 11:29:35 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:51317 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbdKAP3c (ORCPT ); Wed, 1 Nov 2017 11:29:32 -0400 Received: by mail-oi0-f67.google.com with SMTP id j126so5002930oib.8 for ; Wed, 01 Nov 2017 08:29:32 -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=GID7aBGjYeCy9EqFoihmfKxOY7FCOaCyKvaACZffN1E=; b=GE5rtEJklOQHS5kw48HNG64lN07ISUkCt5NQv5Xi9BlFrEfYC4SSt7t0Wd8UC59kdP M9vAh5VRNnYD6rYNo6EauX2PJdJJgT9IePfxudCAfUI63osC3uvt0RwhiSWsL3XSfjzi XBZnOc5cI0OpGolqLsptvTHnMHW9z0PyqPyelqxJKmHqwLzbItp8JcMswfZOtBEO+HQH DoqqBX4wFXqcQXElIiNDMw4tjo6NfSOySCn+fW9p5sXAJY0UQK7inRbMbD3No9TQ1Amv Qq0WAhyMgmNORuMuGYPxgnillbuiaJLtRtsJPxT8e1Iq05JoIT1pucfui+YQ2p95fz9B CyAw== 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=GID7aBGjYeCy9EqFoihmfKxOY7FCOaCyKvaACZffN1E=; b=UuA2zRyCIy6aKhvfoifsSRFkPDoHqZ8GxNF4NVAogVO7KP5DnnTdY8Q5Ox+G5kmoQA bjVL3vf036tJuMiKyqkuanY9i+q5HoE4uTIMwawPg9nIyPlcyktIWQcrMzaJuCngQ47H u6BOQs9a+BlXkqtVPEjZaT67kacoInF8mTZf4boFzKCoemOzyA1c3Z+ZXFoWV3V2bmLJ 9omve2kZwIvtu7yFh6c9G2QQLYLVHoZ5Rlh0UAhAn/bUOe8HUwsVay1TsxU+/x6HuEoo 5OhSUr1YiRsBeR59ocHHQvFzEDbafbcUcoYQlM4PUVYJo2So1MHL5AroBQ6iS3/ba9qN Lk2g== X-Gm-Message-State: AJaThX6yBDTe2tNfyjT8vMtMY3DXUUuWPn9rNs5UCbdj8WrZjZfiBJL7 wpvj2vlxM1qQnsg5Y5v8qkY= X-Google-Smtp-Source: ABhQp+R31hrb+maSuayIdsfezZTR0PMtkQpCdA1serN1U+jKGEd8GkuymkLmzLgjLQvy4cM+imMjng== X-Received: by 10.157.42.43 with SMTP id t40mr106601ota.258.1509550172249; Wed, 01 Nov 2017 08:29:32 -0700 (PDT) Received: from Larrylap.localdomain (cpe-24-31-251-255.kc.res.rr.com. [24.31.251.255]) by smtp.gmail.com with ESMTPSA id v21sm338515ote.49.2017.11.01.08.29.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 08:29:31 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Larry Finger , Ping-Ke Shih , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 01/11] rtlwifi: rtl_pci: Fix formatting errors in pci.h Date: Wed, 1 Nov 2017 10:29:16 -0500 Message-Id: <20171101152926.24971-2-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171101152926.24971-1-Larry.Finger@lwfinger.net> References: <20171101152926.24971-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 Checkpatch.pl reports a number of formatting problems in this header file. None of the changes cause any functional changes in the driver. Signed-off-by: Larry Finger Cc: Ping-Ke Shih Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/pci.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.h b/drivers/net/wireless/realtek/rtlwifi/pci.h index 1af92b34979d..e331f5a3b35f 100644 --- a/drivers/net/wireless/realtek/rtlwifi/pci.h +++ b/drivers/net/wireless/realtek/rtlwifi/pci.h @@ -27,10 +27,9 @@ #define __RTL_PCI_H__ #include -/* -1: MSDU packet queue, -2: Rx Command Queue -*/ +/* 1: MSDU packet queue, + * 2: Rx Command Queue + */ #define RTL_PCI_RX_MPDU_QUEUE 0 #define RTL_PCI_RX_CMD_QUEUE 1 #define RTL_PCI_MAX_RX_QUEUE 2 @@ -223,8 +222,9 @@ struct rtl_pci { u8 const_hostpci_aspm_setting; /*pci-e device */ u8 const_devicepci_aspm_setting; - /*If it supports ASPM, Offset[560h] = 0x40, - otherwise Offset[560h] = 0x00. */ + /* If it supports ASPM, Offset[560h] = 0x40, + * otherwise Offset[560h] = 0x00. + */ bool support_aspm; bool support_backdoor; @@ -279,7 +279,7 @@ int rtl_pci_reset_trx_ring(struct ieee80211_hw *hw); extern const struct rtl_intf_ops rtl_pci_ops; int rtl_pci_probe(struct pci_dev *pdev, - const struct pci_device_id *id); + const struct pci_device_id *id); void rtl_pci_disconnect(struct pci_dev *pdev); #ifdef CONFIG_PM_SLEEP int rtl_pci_suspend(struct device *dev); @@ -287,34 +287,34 @@ int rtl_pci_resume(struct device *dev); #endif /* CONFIG_PM_SLEEP */ static inline u8 pci_read8_sync(struct rtl_priv *rtlpriv, u32 addr) { - return readb((u8 __iomem *) rtlpriv->io.pci_mem_start + addr); + return readb((u8 __iomem *)rtlpriv->io.pci_mem_start + addr); } static inline u16 pci_read16_sync(struct rtl_priv *rtlpriv, u32 addr) { - return readw((u8 __iomem *) rtlpriv->io.pci_mem_start + addr); + return readw((u8 __iomem *)rtlpriv->io.pci_mem_start + addr); } static inline u32 pci_read32_sync(struct rtl_priv *rtlpriv, u32 addr) { - return readl((u8 __iomem *) rtlpriv->io.pci_mem_start + addr); + return readl((u8 __iomem *)rtlpriv->io.pci_mem_start + addr); } static inline void pci_write8_async(struct rtl_priv *rtlpriv, u32 addr, u8 val) { - writeb(val, (u8 __iomem *) rtlpriv->io.pci_mem_start + addr); + writeb(val, (u8 __iomem *)rtlpriv->io.pci_mem_start + addr); } static inline void pci_write16_async(struct rtl_priv *rtlpriv, u32 addr, u16 val) { - writew(val, (u8 __iomem *) rtlpriv->io.pci_mem_start + addr); + writew(val, (u8 __iomem *)rtlpriv->io.pci_mem_start + addr); } static inline void pci_write32_async(struct rtl_priv *rtlpriv, u32 addr, u32 val) { - writel(val, (u8 __iomem *) rtlpriv->io.pci_mem_start + addr); + writel(val, (u8 __iomem *)rtlpriv->io.pci_mem_start + addr); } static inline u16 calc_fifo_space(u16 rp, u16 wp)