Commit 6bc05d5d authored by Larry Finger's avatar Larry Finger Committed by Kalle Valo

rtlwifi: rtl_pci: Fix formatting errors in pci.h

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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent b13b3cdf
...@@ -27,10 +27,9 @@ ...@@ -27,10 +27,9 @@
#define __RTL_PCI_H__ #define __RTL_PCI_H__
#include <linux/pci.h> #include <linux/pci.h>
/* /* 1: MSDU packet queue,
1: MSDU packet queue, * 2: Rx Command Queue
2: Rx Command Queue */
*/
#define RTL_PCI_RX_MPDU_QUEUE 0 #define RTL_PCI_RX_MPDU_QUEUE 0
#define RTL_PCI_RX_CMD_QUEUE 1 #define RTL_PCI_RX_CMD_QUEUE 1
#define RTL_PCI_MAX_RX_QUEUE 2 #define RTL_PCI_MAX_RX_QUEUE 2
...@@ -223,8 +222,9 @@ struct rtl_pci { ...@@ -223,8 +222,9 @@ struct rtl_pci {
u8 const_hostpci_aspm_setting; u8 const_hostpci_aspm_setting;
/*pci-e device */ /*pci-e device */
u8 const_devicepci_aspm_setting; u8 const_devicepci_aspm_setting;
/*If it supports ASPM, Offset[560h] = 0x40, /* If it supports ASPM, Offset[560h] = 0x40,
otherwise Offset[560h] = 0x00. */ * otherwise Offset[560h] = 0x00.
*/
bool support_aspm; bool support_aspm;
bool support_backdoor; bool support_backdoor;
...@@ -279,7 +279,7 @@ int rtl_pci_reset_trx_ring(struct ieee80211_hw *hw); ...@@ -279,7 +279,7 @@ int rtl_pci_reset_trx_ring(struct ieee80211_hw *hw);
extern const struct rtl_intf_ops rtl_pci_ops; extern const struct rtl_intf_ops rtl_pci_ops;
int rtl_pci_probe(struct pci_dev *pdev, 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); void rtl_pci_disconnect(struct pci_dev *pdev);
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
int rtl_pci_suspend(struct device *dev); int rtl_pci_suspend(struct device *dev);
...@@ -287,34 +287,34 @@ int rtl_pci_resume(struct device *dev); ...@@ -287,34 +287,34 @@ int rtl_pci_resume(struct device *dev);
#endif /* CONFIG_PM_SLEEP */ #endif /* CONFIG_PM_SLEEP */
static inline u8 pci_read8_sync(struct rtl_priv *rtlpriv, u32 addr) 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) 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) 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) 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, static inline void pci_write16_async(struct rtl_priv *rtlpriv,
u32 addr, u16 val) 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, static inline void pci_write32_async(struct rtl_priv *rtlpriv,
u32 addr, u32 val) 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) static inline u16 calc_fifo_space(u16 rp, u16 wp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment