aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00usb.h
diff options
context:
space:
mode:
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 2681abe4d49e..53282b036927 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