aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500pci.c
diff options
context:
space:
mode:
authorAdam Baker <linux@baker-net.org.uk>2007-10-27 07:41:25 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:59 -0500
commit0e14f6d3e088473b411d35ff63737e46efb9e6df (patch)
treee92eee3981e77b26aaf1662a607dea7d5738095f /drivers/net/wireless/rt2x00/rt2500pci.c
parentd9890b8f45158970f3418d0c9c0b3bfde13d3a4f (diff)
rt2x00: Unconstify rt2x00dev
Some register accesses need rt2x00dev to be non-const they all need modifying so the prototype is consistent. Signed-off-by: Adam Baker <linux@baker-net.org.uk> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index 869b1a7cec73..3d02c0d297e8 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.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 rt2500pci_bbp_check(const struct rt2x00_dev *rt2x00dev) 57static u32 rt2500pci_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 rt2500pci_bbp_check(const struct rt2x00_dev *rt2x00dev)
69 return reg; 69 return reg;
70} 70}
71 71
72static void rt2500pci_bbp_write(const struct rt2x00_dev *rt2x00dev, 72static void rt2500pci_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 rt2500pci_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 rt2500pci_bbp_read(const struct rt2x00_dev *rt2x00dev, 98static void rt2500pci_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 rt2500pci_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 rt2500pci_rf_write(const struct rt2x00_dev *rt2x00dev, 135static void rt2500pci_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 rt2500pci_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 rt2500pci_read_csr(const struct rt2x00_dev *rt2x00dev, 198static void rt2500pci_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 rt2500pci_write_csr(const struct rt2x00_dev *rt2x00dev, 204static void rt2500pci_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);