aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00usb.h
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/rt2x00usb.h
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/rt2x00usb.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00usb.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.h b/drivers/net/wireless/rt2x00/rt2x00usb.h
index 2681abe4d49..53282b03692 100644
--- a/drivers/net/wireless/rt2x00/rt2x00usb.h
+++ b/drivers/net/wireless/rt2x00/rt2x00usb.h
@@ -91,7 +91,7 @@
91 * a buffer allocated by kmalloc. Failure to do so can lead 91 * a buffer allocated by kmalloc. Failure to do so can lead
92 * to unexpected behavior depending on the architecture. 92 * to unexpected behavior depending on the architecture.
93 */ 93 */
94int rt2x00usb_vendor_request(const struct rt2x00_dev *rt2x00dev, 94int rt2x00usb_vendor_request(struct rt2x00_dev *rt2x00dev,
95 const u8 request, const u8 requesttype, 95 const u8 request, const u8 requesttype,
96 const u16 offset, const u16 value, 96 const u16 offset, const u16 value,
97 void *buffer, const u16 buffer_length, 97 void *buffer, const u16 buffer_length,
@@ -107,7 +107,7 @@ int rt2x00usb_vendor_request(const struct rt2x00_dev *rt2x00dev,
107 * kmalloc. Hence the reason for using a previously allocated cache 107 * kmalloc. Hence the reason for using a previously allocated cache
108 * which has been allocated properly. 108 * which has been allocated properly.
109 */ 109 */
110int rt2x00usb_vendor_request_buff(const struct rt2x00_dev *rt2x00dev, 110int rt2x00usb_vendor_request_buff(struct rt2x00_dev *rt2x00dev,
111 const u8 request, const u8 requesttype, 111 const u8 request, const u8 requesttype,
112 const u16 offset, void *buffer, 112 const u16 offset, void *buffer,
113 const u16 buffer_length, const int timeout); 113 const u16 buffer_length, const int timeout);
@@ -117,8 +117,7 @@ int rt2x00usb_vendor_request_buff(const struct rt2x00_dev *rt2x00dev,
117 * command to the device. Since we don't use the buffer argument we 117 * command to the device. Since we don't use the buffer argument we
118 * don't have to worry about kmalloc here. 118 * don't have to worry about kmalloc here.
119 */ 119 */
120static inline int rt2x00usb_vendor_request_sw(const struct rt2x00_dev 120static inline int rt2x00usb_vendor_request_sw(struct rt2x00_dev *rt2x00dev,
121 *rt2x00dev,
122 const u8 request, 121 const u8 request,
123 const u16 offset, 122 const u16 offset,
124 const u16 value, 123 const u16 value,
@@ -134,8 +133,8 @@ static inline int rt2x00usb_vendor_request_sw(const struct rt2x00_dev
134 * from the device. Note that the eeprom argument _must_ be allocated using 133 * from the device. Note that the eeprom argument _must_ be allocated using
135 * kmalloc for correct handling inside the kernel USB layer. 134 * kmalloc for correct handling inside the kernel USB layer.
136 */ 135 */
137static inline int rt2x00usb_eeprom_read(const struct rt2x00_dev *rt2x00dev, 136static inline int rt2x00usb_eeprom_read(struct rt2x00_dev *rt2x00dev,
138 __le16 *eeprom, const u16 lenght) 137 __le16 *eeprom, const u16 lenght)
139{ 138{
140 int timeout = REGISTER_TIMEOUT * (lenght / sizeof(u16)); 139 int timeout = REGISTER_TIMEOUT * (lenght / sizeof(u16));
141 140