rt2x00: fix rt2x00usb_register_multiwrite() arguments
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 4 Nov 2009 17:35:10 +0000 (18:35 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 6 Nov 2009 21:48:54 +0000 (16:48 -0500)
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>
drivers/net/wireless/rt2x00/rt2800usb.h
drivers/net/wireless/rt2x00/rt2x00usb.h

index 6524d72..8c88690 100644 (file)
@@ -40,7 +40,7 @@ struct rt2800_ops {
                                   void *value, const u32 length);
        void (*register_multiwrite)(struct rt2x00_dev *rt2x00dev,
                                    const unsigned int offset,
-                                   void *value, const u32 length);
+                                   const void *value, const u32 length);
 
        int (*regbusy_read)(struct rt2x00_dev *rt2x00dev,
                            const unsigned int offset,
index 9093516..f6fb58f 100644 (file)
@@ -340,12 +340,13 @@ static inline void rt2x00usb_register_write_lock(struct rt2x00_dev *rt2x00dev,
  * through rt2x00usb_vendor_request_buff().
  */
 static inline void rt2x00usb_register_multiwrite(struct rt2x00_dev *rt2x00dev,
-                                              const unsigned int offset,
-                                              void *value, const u32 length)
+                                                const unsigned int offset,
+                                                const void *value,
+                                                const u32 length)
 {
        rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_WRITE,
                                      USB_VENDOR_REQUEST_OUT, offset,
-                                     value, length,
+                                     (void *)value, length,
                                      REGISTER_TIMEOUT32(length));
 }