aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-11-04 12:35:10 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-06 16:48:54 -0500
commit5b10b09898bf00350a68af4cdaf96c393b252591 (patch)
tree050a80deeac79492388e77cb478bcd501082385b /drivers/net/wireless
parentb0a1edabd31a18de3c6380022af0804592bded14 (diff)
rt2x00: fix rt2x00usb_register_multiwrite() arguments
Add const to 'value' argument of rt2x00usb_register_multiwrite() (all arguments match rt2x00pci_register_multiwrite() ones now). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.h2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00usb.h7
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.h b/drivers/net/wireless/rt2x00/rt2800usb.h
index 6524d72631cd..8c88690c1537 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.h
+++ b/drivers/net/wireless/rt2x00/rt2800usb.h
@@ -40,7 +40,7 @@ struct rt2800_ops {
40 void *value, const u32 length); 40 void *value, const u32 length);
41 void (*register_multiwrite)(struct rt2x00_dev *rt2x00dev, 41 void (*register_multiwrite)(struct rt2x00_dev *rt2x00dev,
42 const unsigned int offset, 42 const unsigned int offset,
43 void *value, const u32 length); 43 const void *value, const u32 length);
44 44
45 int (*regbusy_read)(struct rt2x00_dev *rt2x00dev, 45 int (*regbusy_read)(struct rt2x00_dev *rt2x00dev,
46 const unsigned int offset, 46 const unsigned int offset,
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.h b/drivers/net/wireless/rt2x00/rt2x00usb.h
index 9093516d9af1..f6fb58f2ca72 100644
--- a/drivers/net/wireless/rt2x00/rt2x00usb.h
+++ b/drivers/net/wireless/rt2x00/rt2x00usb.h
@@ -340,12 +340,13 @@ static inline void rt2x00usb_register_write_lock(struct rt2x00_dev *rt2x00dev,
340 * through rt2x00usb_vendor_request_buff(). 340 * through rt2x00usb_vendor_request_buff().
341 */ 341 */
342static inline void rt2x00usb_register_multiwrite(struct rt2x00_dev *rt2x00dev, 342static inline void rt2x00usb_register_multiwrite(struct rt2x00_dev *rt2x00dev,
343 const unsigned int offset, 343 const unsigned int offset,
344 void *value, const u32 length) 344 const void *value,
345 const u32 length)
345{ 346{
346 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE, 347 rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE,
347 USB_VENDOR_REQUEST_OUT, offset, 348 USB_VENDOR_REQUEST_OUT, offset,
348 value, length, 349 (void *)value, length,
349 REGISTER_TIMEOUT32(length)); 350 REGISTER_TIMEOUT32(length));
350} 351}
351 352