Skip to content

Commit b19fc59

Browse files
committed
Fix name of spur chan number constant
Follow the rule when we entitle variables and constants by the name of a chip for which this constant was defined first time and change AR_ prefix by AR5416_ in the name of constant (actually macro) that defines number of spur channels.
1 parent 5c1b6d5 commit b19fc59

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

eep_5416.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct ar5416_modal_eep_hdr {
9999
uint8_t miscBits;
100100
uint16_t xpaBiasLvlFreq[3];
101101
uint8_t futureModal[6];
102-
struct ar5416_spur_chan spurChans[AR_EEPROM_MODAL_SPURS];
102+
struct ar5416_spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS];
103103
} __attribute__ ((packed));
104104

105105
struct ar5416_cal_data_per_freq {

eep_9285.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct ar9285_modal_eep_hdr {
107107
uint8_t flc_pwr_thresh;
108108
uint8_t bb_scale_smrt_antenna;
109109
uint8_t futureModal[1];
110-
struct ar5416_spur_chan spurChans[AR_EEPROM_MODAL_SPURS];
110+
struct ar5416_spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS];
111111
} __attribute__ ((packed));
112112

113113
struct ar9285_cal_data_per_freq {

eep_9287.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct ar9287_modal_eep_hdr {
8484
uint8_t ob_qam;
8585
uint8_t ob_pal_off;
8686
uint8_t futureModal[30];
87-
struct ar5416_spur_chan spurChans[AR_EEPROM_MODAL_SPURS];
87+
struct ar5416_spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS];
8888
} __attribute__ ((packed));
8989

9090
struct ar9287_cal_data_op_loop {

eep_9300.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct ar9300_modal_eep_hdr {
121121
int8_t tempSlope;
122122
int8_t voltSlope;
123123
/* spur channels in usual fbin coding format */
124-
uint8_t spurChans[AR_EEPROM_MODAL_SPURS];
124+
uint8_t spurChans[AR5416_EEPROM_MODAL_SPURS];
125125
/* 3 Check if the register is per chain */
126126
int8_t noiseFloorThreshCh[AR9300_MAX_CHAINS];
127127
uint8_t reserved[11];

eep_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#define AR5416_ANTCTRLCMN_BT 0xf000
7272
#define AR5416_ANTCTRLCMN_BT_S 12
7373

74-
#define AR_EEPROM_MODAL_SPURS 5
74+
#define AR5416_EEPROM_MODAL_SPURS 5
7575
#define AR5416_NUM_PD_GAINS 4
7676
#define AR5416_PD_GAIN_ICEPTS 5
7777
#define AR5416_BCHAN_UNUSED 0xff

0 commit comments

Comments
 (0)