aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00.h
diff options
context:
space:
mode:
authorAdam Baker <linux@baker-net.org.uk>2007-10-27 07:41:25 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:59 -0500
commit0e14f6d3e088473b411d35ff63737e46efb9e6df (patch)
treee92eee3981e77b26aaf1662a607dea7d5738095f /drivers/net/wireless/rt2x00/rt2x00.h
parentd9890b8f45158970f3418d0c9c0b3bfde13d3a4f (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.h10
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 */
785static inline void rt2x00_rf_read(const struct rt2x00_dev *rt2x00dev, 785static 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
791static inline void rt2x00_rf_write(const struct rt2x00_dev *rt2x00dev, 791static 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 */
801static inline void *rt2x00_eeprom_addr(const struct rt2x00_dev *rt2x00dev, 801static 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
807static inline void rt2x00_eeprom_read(const struct rt2x00_dev *rt2x00dev, 807static 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
813static inline void rt2x00_eeprom_write(const struct rt2x00_dev *rt2x00dev, 813static 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);