diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-07 18:04:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-10 14:10:32 -0400 |
commit | a043dfb90e0472049baabc4cc9168e1fe2bd7a90 (patch) | |
tree | a97cc121b073293bc14c4c8b40bbe098ef794f74 /drivers/net/wireless/ath/ath9k/calib.h | |
parent | 37c62fecbf4f850e194063fdfb02326c15ea7cf1 (diff) |
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 { | |||
33 | u32 ia_columns; | 33 | u32 ia_columns; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | #define STATIC_INI_ARRAY(array) { \ | ||
37 | .ia_array = (u32 *)(array), \ | ||
38 | .ia_rows = ARRAY_SIZE(array), \ | ||
39 | .ia_columns = ARRAY_SIZE(array[0]), \ | ||
40 | } | ||
41 | |||
36 | #define INIT_INI_ARRAY(iniarray, array) do { \ | 42 | #define INIT_INI_ARRAY(iniarray, array) do { \ |
37 | (iniarray)->ia_array = (u32 *)(array); \ | 43 | (iniarray)->ia_array = (u32 *)(array); \ |
38 | (iniarray)->ia_rows = ARRAY_SIZE(array); \ | 44 | (iniarray)->ia_rows = ARRAY_SIZE(array); \ |