diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-02 19:40:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-14 13:56:19 -0400 |
commit | 82b2d334314c387ebd857b88a3d889c9a2cfec4a (patch) | |
tree | 3108d4abc5ccf7711306a6e92ed87e6da4532f77 /drivers/net/wireless/ath/ath9k/debug.c | |
parent | 693828fe92933ce4fff4c1e51365b2e6ab033b0e (diff) |
ath9k: eliminate common->{rx,tx}_chainmask
we already have ah->{rx,tx}chainmask for the same purpose
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 727e8de22fda..19ef559ac78f 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -95,11 +95,11 @@ static ssize_t read_file_tx_chainmask(struct file *file, char __user *user_buf, | |||
95 | size_t count, loff_t *ppos) | 95 | size_t count, loff_t *ppos) |
96 | { | 96 | { |
97 | struct ath_softc *sc = file->private_data; | 97 | struct ath_softc *sc = file->private_data; |
98 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); | 98 | struct ath_hw *ah = sc->sc_ah; |
99 | char buf[32]; | 99 | char buf[32]; |
100 | unsigned int len; | 100 | unsigned int len; |
101 | 101 | ||
102 | len = sprintf(buf, "0x%08x\n", common->tx_chainmask); | 102 | len = sprintf(buf, "0x%08x\n", ah->txchainmask); |
103 | return simple_read_from_buffer(user_buf, count, ppos, buf, len); | 103 | return simple_read_from_buffer(user_buf, count, ppos, buf, len); |
104 | } | 104 | } |
105 | 105 | ||
@@ -107,7 +107,7 @@ static ssize_t write_file_tx_chainmask(struct file *file, const char __user *use | |||
107 | size_t count, loff_t *ppos) | 107 | size_t count, loff_t *ppos) |
108 | { | 108 | { |
109 | struct ath_softc *sc = file->private_data; | 109 | struct ath_softc *sc = file->private_data; |
110 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); | 110 | struct ath_hw *ah = sc->sc_ah; |
111 | unsigned long mask; | 111 | unsigned long mask; |
112 | char buf[32]; | 112 | char buf[32]; |
113 | ssize_t len; | 113 | ssize_t len; |
@@ -120,8 +120,8 @@ static ssize_t write_file_tx_chainmask(struct file *file, const char __user *use | |||
120 | if (strict_strtoul(buf, 0, &mask)) | 120 | if (strict_strtoul(buf, 0, &mask)) |
121 | return -EINVAL; | 121 | return -EINVAL; |
122 | 122 | ||
123 | common->tx_chainmask = mask; | 123 | ah->txchainmask = mask; |
124 | sc->sc_ah->caps.tx_chainmask = mask; | 124 | ah->caps.tx_chainmask = mask; |
125 | return count; | 125 | return count; |
126 | } | 126 | } |
127 | 127 | ||
@@ -138,11 +138,11 @@ static ssize_t read_file_rx_chainmask(struct file *file, char __user *user_buf, | |||
138 | size_t count, loff_t *ppos) | 138 | size_t count, loff_t *ppos) |
139 | { | 139 | { |
140 | struct ath_softc *sc = file->private_data; | 140 | struct ath_softc *sc = file->private_data; |
141 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); | 141 | struct ath_hw *ah = sc->sc_ah; |
142 | char buf[32]; | 142 | char buf[32]; |
143 | unsigned int len; | 143 | unsigned int len; |
144 | 144 | ||
145 | len = sprintf(buf, "0x%08x\n", common->rx_chainmask); | 145 | len = sprintf(buf, "0x%08x\n", ah->rxchainmask); |
146 | return simple_read_from_buffer(user_buf, count, ppos, buf, len); | 146 | return simple_read_from_buffer(user_buf, count, ppos, buf, len); |
147 | } | 147 | } |
148 | 148 | ||
@@ -150,7 +150,7 @@ static ssize_t write_file_rx_chainmask(struct file *file, const char __user *use | |||
150 | size_t count, loff_t *ppos) | 150 | size_t count, loff_t *ppos) |
151 | { | 151 | { |
152 | struct ath_softc *sc = file->private_data; | 152 | struct ath_softc *sc = file->private_data; |
153 | struct ath_common *common = ath9k_hw_common(sc->sc_ah); | 153 | struct ath_hw *ah = sc->sc_ah; |
154 | unsigned long mask; | 154 | unsigned long mask; |
155 | char buf[32]; | 155 | char buf[32]; |
156 | ssize_t len; | 156 | ssize_t len; |
@@ -163,8 +163,8 @@ static ssize_t write_file_rx_chainmask(struct file *file, const char __user *use | |||
163 | if (strict_strtoul(buf, 0, &mask)) | 163 | if (strict_strtoul(buf, 0, &mask)) |
164 | return -EINVAL; | 164 | return -EINVAL; |
165 | 165 | ||
166 | common->rx_chainmask = mask; | 166 | ah->rxchainmask = mask; |
167 | sc->sc_ah->caps.rx_chainmask = mask; | 167 | ah->caps.rx_chainmask = mask; |
168 | return count; | 168 | return count; |
169 | } | 169 | } |
170 | 170 | ||