diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-08 02:04:08 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-10 22:10:32 +0400 |
commit | a043dfb90e0472049baabc4cc9168e1fe2bd7a90 (patch) | |
tree | a97cc121b073293bc14c4c8b40bbe098ef794f74 /drivers/net/wireless/ath/ath9k/calib.h | |
parent | 37c62fecbf4f850e194063fdfb02326c15ea7cf1 (diff) | |
download | linux-a043dfb90e0472049baabc4cc9168e1fe2bd7a90.tar.xz |
ath9k_hw: make various ar5416/ar91xx rf banks const
Banks 0-3,7 are neither modified at run time, nor SREV dependent.
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/calib.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.h b/drivers/net/wireless/ath/ath9k/calib.h index 60dcb6c22db9..3d70b8c2bcdd 100644 --- a/drivers/net/wireless/ath/ath9k/calib.h +++ b/drivers/net/wireless/ath/ath9k/calib.h @@ -33,6 +33,12 @@ struct ar5416IniArray { u32 ia_columns; }; +#define STATIC_INI_ARRAY(array) { \ + .ia_array = (u32 *)(array), \ + .ia_rows = ARRAY_SIZE(array), \ + .ia_columns = ARRAY_SIZE(array[0]), \ + } + #define INIT_INI_ARRAY(iniarray, array) do { \ (iniarray)->ia_array = (u32 *)(array); \ (iniarray)->ia_rows = ARRAY_SIZE(array); \ |