Move the INI_CHECK macro above

We'll be splitting up the checks by hardware family next so
we'll need access to it on other helpers.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
This commit is contained in:
Luis R. Rodriguez 2010-04-13 17:11:15 -07:00
parent 56f632f335
commit 6d2310bd6a

View file

@ -8,6 +8,13 @@
#include <linux/types.h>
#include "initvals.h"
#define INI_CHECK(_array, _cols) \
do { \
chksum = ath9k_hw_check_initval((const u32 *) &_array,\
ARRAY_SIZE(_array), _cols); \
printf("0x%016llx "#_array"\n", chksum); \
} while (0)
#if 0
static u32 ath9k_hw_print_initval(const u32 *array, u32 rows, u32 columns)
{
@ -48,13 +55,6 @@ static u64 ath9k_hw_check_initval(const u32 *array, u32 rows, u32 columns)
int main(void)
{
#define INI_CHECK(_array, _cols) \
do { \
chksum = ath9k_hw_check_initval((const u32 *) &_array,\
ARRAY_SIZE(_array), _cols); \
printf("0x%016llx "#_array"\n", chksum); \
} while (0)
u64 chksum;
INI_CHECK(ar5416Modes, 6);