aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.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/rt61pci.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/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 7c97761034e7..19ae8f49d9c8 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -52,7 +52,7 @@
52 * the access attempt is considered to have failed, 52 * the access attempt is considered to have failed,
53 * and we will print an error. 53 * and we will print an error.
54 */ 54 */
55static u32 rt61pci_bbp_check(const struct rt2x00_dev *rt2x00dev) 55static u32 rt61pci_bbp_check(struct rt2x00_dev *rt2x00dev)
56{ 56{
57 u32 reg; 57 u32 reg;
58 unsigned int i; 58 unsigned int i;
@@ -67,7 +67,7 @@ static u32 rt61pci_bbp_check(const struct rt2x00_dev *rt2x00dev)
67 return reg; 67 return reg;
68} 68}
69 69
70static void rt61pci_bbp_write(const struct rt2x00_dev *rt2x00dev, 70static void rt61pci_bbp_write(struct rt2x00_dev *rt2x00dev,
71 const unsigned int word, const u8 value) 71 const unsigned int word, const u8 value)
72{ 72{
73 u32 reg; 73 u32 reg;
@@ -93,7 +93,7 @@ static void rt61pci_bbp_write(const struct rt2x00_dev *rt2x00dev,
93 rt2x00pci_register_write(rt2x00dev, PHY_CSR3, reg); 93 rt2x00pci_register_write(rt2x00dev, PHY_CSR3, reg);
94} 94}
95 95
96static void rt61pci_bbp_read(const struct rt2x00_dev *rt2x00dev, 96static void rt61pci_bbp_read(struct rt2x00_dev *rt2x00dev,
97 const unsigned int word, u8 *value) 97 const unsigned int word, u8 *value)
98{ 98{
99 u32 reg; 99 u32 reg;
@@ -130,7 +130,7 @@ static void rt61pci_bbp_read(const struct rt2x00_dev *rt2x00dev,
130 *value = rt2x00_get_field32(reg, PHY_CSR3_VALUE); 130 *value = rt2x00_get_field32(reg, PHY_CSR3_VALUE);
131} 131}
132 132
133static void rt61pci_rf_write(const struct rt2x00_dev *rt2x00dev, 133static void rt61pci_rf_write(struct rt2x00_dev *rt2x00dev,
134 const unsigned int word, const u32 value) 134 const unsigned int word, const u32 value)
135{ 135{
136 u32 reg; 136 u32 reg;
@@ -160,7 +160,7 @@ rf_write:
160 rt2x00_rf_write(rt2x00dev, word, value); 160 rt2x00_rf_write(rt2x00dev, word, value);
161} 161}
162 162
163static void rt61pci_mcu_request(const struct rt2x00_dev *rt2x00dev, 163static void rt61pci_mcu_request(struct rt2x00_dev *rt2x00dev,
164 const u8 command, const u8 token, 164 const u8 command, const u8 token,
165 const u8 arg0, const u8 arg1) 165 const u8 arg0, const u8 arg1)
166{ 166{
@@ -220,13 +220,13 @@ static void rt61pci_eepromregister_write(struct eeprom_93cx6 *eeprom)
220#ifdef CONFIG_RT2X00_LIB_DEBUGFS 220#ifdef CONFIG_RT2X00_LIB_DEBUGFS
221#define CSR_OFFSET(__word) ( CSR_REG_BASE + ((__word) * sizeof(u32)) ) 221#define CSR_OFFSET(__word) ( CSR_REG_BASE + ((__word) * sizeof(u32)) )
222 222
223static void rt61pci_read_csr(const struct rt2x00_dev *rt2x00dev, 223static void rt61pci_read_csr(struct rt2x00_dev *rt2x00dev,
224 const unsigned int word, u32 *data) 224 const unsigned int word, u32 *data)
225{ 225{
226 rt2x00pci_register_read(rt2x00dev, CSR_OFFSET(word), data); 226 rt2x00pci_register_read(rt2x00dev, CSR_OFFSET(word), data);
227} 227}
228 228
229static void rt61pci_write_csr(const struct rt2x00_dev *rt2x00dev, 229static void rt61pci_write_csr(struct rt2x00_dev *rt2x00dev,
230 const unsigned int word, u32 data) 230 const unsigned int word, u32 data)
231{ 231{
232 rt2x00pci_register_write(rt2x00dev, CSR_OFFSET(word), data); 232 rt2x00pci_register_write(rt2x00dev, CSR_OFFSET(word), data);