aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2400pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index fc162122617e..f2d0febbec49 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -54,7 +54,7 @@
54 * the access attempt is considered to have failed, 54 * the access attempt is considered to have failed,
55 * and we will print an error. 55 * and we will print an error.
56 */ 56 */
57static u32 rt2400pci_bbp_check(const struct rt2x00_dev *rt2x00dev) 57static u32 rt2400pci_bbp_check(struct rt2x00_dev *rt2x00dev)
58{ 58{
59 u32 reg; 59 u32 reg;
60 unsigned int i; 60 unsigned int i;
@@ -69,7 +69,7 @@ static u32 rt2400pci_bbp_check(const struct rt2x00_dev *rt2x00dev)
69 return reg; 69 return reg;
70} 70}
71 71
72static void rt2400pci_bbp_write(const struct rt2x00_dev *rt2x00dev, 72static void rt2400pci_bbp_write(struct rt2x00_dev *rt2x00dev,
73 const unsigned int word, const u8 value) 73 const unsigned int word, const u8 value)
74{ 74{
75 u32 reg; 75 u32 reg;
@@ -95,7 +95,7 @@ static void rt2400pci_bbp_write(const struct rt2x00_dev *rt2x00dev,
95 rt2x00pci_register_write(rt2x00dev, BBPCSR, reg); 95 rt2x00pci_register_write(rt2x00dev, BBPCSR, reg);
96} 96}
97 97
98static void rt2400pci_bbp_read(const struct rt2x00_dev *rt2x00dev, 98static void rt2400pci_bbp_read(struct rt2x00_dev *rt2x00dev,
99 const unsigned int word, u8 *value) 99 const unsigned int word, u8 *value)
100{ 100{
101 u32 reg; 101 u32 reg;
@@ -132,7 +132,7 @@ static void rt2400pci_bbp_read(const struct rt2x00_dev *rt2x00dev,
132 *value = rt2x00_get_field32(reg, BBPCSR_VALUE); 132 *value = rt2x00_get_field32(reg, BBPCSR_VALUE);
133} 133}
134 134
135static void rt2400pci_rf_write(const struct rt2x00_dev *rt2x00dev, 135static void rt2400pci_rf_write(struct rt2x00_dev *rt2x00dev,
136 const unsigned int word, const u32 value) 136 const unsigned int word, const u32 value)
137{ 137{
138 u32 reg; 138 u32 reg;
@@ -195,13 +195,13 @@ static void rt2400pci_eepromregister_write(struct eeprom_93cx6 *eeprom)
195#ifdef CONFIG_RT2X00_LIB_DEBUGFS 195#ifdef CONFIG_RT2X00_LIB_DEBUGFS
196#define CSR_OFFSET(__word) ( CSR_REG_BASE + ((__word) * sizeof(u32)) ) 196#define CSR_OFFSET(__word) ( CSR_REG_BASE + ((__word) * sizeof(u32)) )
197 197
198static void rt2400pci_read_csr(const struct rt2x00_dev *rt2x00dev, 198static void rt2400pci_read_csr(struct rt2x00_dev *rt2x00dev,
199 const unsigned int word, u32 *data) 199 const unsigned int word, u32 *data)
200{ 200{
201 rt2x00pci_register_read(rt2x00dev, CSR_OFFSET(word), data); 201 rt2x00pci_register_read(rt2x00dev, CSR_OFFSET(word), data);
202} 202}
203 203
204static void rt2400pci_write_csr(const struct rt2x00_dev *rt2x00dev, 204static void rt2400pci_write_csr(struct rt2x00_dev *rt2x00dev,
205 const unsigned int word, u32 data) 205 const unsigned int word, u32 data)
206{ 206{
207 rt2x00pci_register_write(rt2x00dev, CSR_OFFSET(word), data); 207 rt2x00pci_register_write(rt2x00dev, CSR_OFFSET(word), data);