rt2x00: fix rt2x00usb_regbusy_read() arguments
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 4 Nov 2009 17:35:18 +0000 (18:35 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 6 Nov 2009 21:48:54 +0000 (16:48 -0500)
Add const to 'field' argument of rt2x00usb_regbusy_read()
(all arguments match rt2x00pci_regbusy_read() 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.c
drivers/net/wireless/rt2x00/rt2x00usb.h

index 8c88690c1537d8b4e1af8ea1d02bbb0a1555d605..0a525a722a749ed9a80bd14078b6c2763551f503 100644 (file)
@@ -44,7 +44,7 @@ struct rt2800_ops {
 
        int (*regbusy_read)(struct rt2x00_dev *rt2x00dev,
                            const unsigned int offset,
-                           struct rt2x00_field32 field, u32 *reg);
+                           const struct rt2x00_field32 field, u32 *reg);
 };
 
 static inline void rt2800_register_read(struct rt2x00_dev *rt2x00dev,
index 501544882c2cdd1ee07899069edd8f64bbf7a101..b34d4b6badd060259d0890fce7341b0927590030 100644 (file)
@@ -156,7 +156,7 @@ EXPORT_SYMBOL_GPL(rt2x00usb_vendor_request_large_buff);
 
 int rt2x00usb_regbusy_read(struct rt2x00_dev *rt2x00dev,
                           const unsigned int offset,
-                          struct rt2x00_field32 field,
+                          const struct rt2x00_field32 field,
                           u32 *reg)
 {
        unsigned int i;
index f6fb58f2ca7258fda1dcad217d5ef44f26c0e1de..212dec47119e692cf3e41818cb9811ee90ab5e3d 100644 (file)
@@ -365,7 +365,7 @@ static inline void rt2x00usb_register_multiwrite(struct rt2x00_dev *rt2x00dev,
  */
 int rt2x00usb_regbusy_read(struct rt2x00_dev *rt2x00dev,
                           const unsigned int offset,
-                          struct rt2x00_field32 field,
+                          const struct rt2x00_field32 field,
                           u32 *reg);
 
 /*