diff options
author | Adam Baker <linux@baker-net.org.uk> | 2007-10-27 07:41:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:59 -0500 |
commit | 0e14f6d3e088473b411d35ff63737e46efb9e6df (patch) | |
tree | e92eee3981e77b26aaf1662a607dea7d5738095f /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | d9890b8f45158970f3418d0c9c0b3bfde13d3a4f (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/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 871d631a5ca8..d18cca89eede 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -782,13 +782,13 @@ struct rt2x00_dev { | |||
782 | * Generic RF access. | 782 | * Generic RF access. |
783 | * The RF is being accessed by word index. | 783 | * The RF is being accessed by word index. |
784 | */ | 784 | */ |
785 | static inline void rt2x00_rf_read(const struct rt2x00_dev *rt2x00dev, | 785 | static inline void rt2x00_rf_read(struct rt2x00_dev *rt2x00dev, |
786 | const unsigned int word, u32 *data) | 786 | const unsigned int word, u32 *data) |
787 | { | 787 | { |
788 | *data = rt2x00dev->rf[word]; | 788 | *data = rt2x00dev->rf[word]; |
789 | } | 789 | } |
790 | 790 | ||
791 | static inline void rt2x00_rf_write(const struct rt2x00_dev *rt2x00dev, | 791 | static inline void rt2x00_rf_write(struct rt2x00_dev *rt2x00dev, |
792 | const unsigned int word, u32 data) | 792 | const unsigned int word, u32 data) |
793 | { | 793 | { |
794 | rt2x00dev->rf[word] = data; | 794 | rt2x00dev->rf[word] = data; |
@@ -798,19 +798,19 @@ static inline void rt2x00_rf_write(const struct rt2x00_dev *rt2x00dev, | |||
798 | * Generic EEPROM access. | 798 | * Generic EEPROM access. |
799 | * The EEPROM is being accessed by word index. | 799 | * The EEPROM is being accessed by word index. |
800 | */ | 800 | */ |
801 | static inline void *rt2x00_eeprom_addr(const struct rt2x00_dev *rt2x00dev, | 801 | static inline void *rt2x00_eeprom_addr(struct rt2x00_dev *rt2x00dev, |
802 | const unsigned int word) | 802 | const unsigned int word) |
803 | { | 803 | { |
804 | return (void *)&rt2x00dev->eeprom[word]; | 804 | return (void *)&rt2x00dev->eeprom[word]; |
805 | } | 805 | } |
806 | 806 | ||
807 | static inline void rt2x00_eeprom_read(const struct rt2x00_dev *rt2x00dev, | 807 | static inline void rt2x00_eeprom_read(struct rt2x00_dev *rt2x00dev, |
808 | const unsigned int word, u16 *data) | 808 | const unsigned int word, u16 *data) |
809 | { | 809 | { |
810 | *data = le16_to_cpu(rt2x00dev->eeprom[word]); | 810 | *data = le16_to_cpu(rt2x00dev->eeprom[word]); |
811 | } | 811 | } |
812 | 812 | ||
813 | static inline void rt2x00_eeprom_write(const struct rt2x00_dev *rt2x00dev, | 813 | static inline void rt2x00_eeprom_write(struct rt2x00_dev *rt2x00dev, |
814 | const unsigned int word, u16 data) | 814 | const unsigned int word, u16 data) |
815 | { | 815 | { |
816 | rt2x00dev->eeprom[word] = cpu_to_le16(data); | 816 | rt2x00dev->eeprom[word] = cpu_to_le16(data); |