summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/calib.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-15 19:53:33 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-07-17 15:11:34 -0400
commita364517b1ed6010bc2bbb98af493d18339d058e9 (patch)
tree07ff5d04a92e6a4ce6f540c6b35e56615c2c9520 /drivers/net/wireless/ath/ath9k/calib.h
parentb05a01110ed10a93203d936a06aa01bf80837c39 (diff)
ath9k_hw: remove redundant arguments to INIT_INI_ARRAY
The row/column sizes can be derived from the array argument within the macro itself, which is less error prone. In a few cases the supplied column size was actually wrong. 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.h b/drivers/net/wireless/ath/ath9k/calib.h
index 3b33996d97df..1060c19a5012 100644
--- a/drivers/net/wireless/ath/ath9k/calib.h
+++ b/drivers/net/wireless/ath/ath9k/calib.h
@@ -30,10 +30,10 @@ struct ar5416IniArray {
u32 ia_columns;
};
-#define INIT_INI_ARRAY(iniarray, array, rows, columns) do { \
+#define INIT_INI_ARRAY(iniarray, array) do { \
(iniarray)->ia_array = (u32 *)(array); \
- (iniarray)->ia_rows = (rows); \
- (iniarray)->ia_columns = (columns); \
+ (iniarray)->ia_rows = ARRAY_SIZE(array); \
+ (iniarray)->ia_columns = ARRAY_SIZE(array[0]); \
} while (0)
#define INI_RA(iniarray, row, column) \