diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-08-19 10:46:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-21 00:10:22 +0300 |
commit | 46f26ddf562e7495ffa37144be5e447aeb13795e (patch) | |
tree | f872bc3ed406198bf78e0f1de733ba636f53fec6 /drivers/net/wireless/ath/ath5k/debug.c | |
parent | 5377d75823ff90c0d5d52d69087707b2e54be21b (diff) | |
download | linux-46f26ddf562e7495ffa37144be5e447aeb13795e.tar.xz |
ath5k: use DECLARE_EWMA
This reduces code size slightly (at least on x86/64) while also
removing memory consumption by two unsigned long values for each
ath5k device.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index c70782e8f07b..654a1e33f827 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c @@ -722,7 +722,7 @@ static ssize_t read_file_ani(struct file *file, char __user *user_buf, st->mib_intr); len += snprintf(buf + len, sizeof(buf) - len, "beacon RSSI average:\t%d\n", - (int)ewma_read(&ah->ah_beacon_rssi_avg)); + (int)ewma_beacon_rssi_read(&ah->ah_beacon_rssi_avg)); #define CC_PRINT(_struct, _field) \ _struct._field, \ |