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>
This commit is contained in:

committed by
John W. Linville

parent
37c62fecbf
commit
a043dfb90e
@@ -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); \
|
||||
|
Reference in New Issue
Block a user