mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2026-01-27 17:07:18 +01:00
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:
parent
56f632f335
commit
6d2310bd6a
1 changed files with 7 additions and 7 deletions
14
initvals.c
14
initvals.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue