mt76x0: unify temperature offset parsing

Unify temperature offset parsing with mt76x2 driver using
eeprom utility routines available in mt76x02-lib module

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2018-09-21 18:05:35 +02:00
committed by Felix Fietkau
parent 2a470dbf73
commit fe89537df0
5 changed files with 13 additions and 10 deletions
+2 -1
View File
@@ -31,11 +31,12 @@ struct reg_channel_bounds {
struct mt76x0_caldata {
s8 rssi_offset[2];
s8 lna_gain;
s16 temp_offset;
};
struct mt76x0_eeprom_params {
u8 rf_freq_off;
s16 temp_off;
/* TX_PWR_CFG_* values from EEPROM for 20 and 40 Mhz bandwidths. */
u32 tx_pwr_cfg_2g[5][2];