mt76x0: remove eeprom dependency from mt76x0_get_power_info

In order to unify eeprom parsing between mt76x0 and mt76x2 drivers,
remove eeprom pointer dependency from mt76x0_get_power_info routine.
Remove mt76x0_eeprom_params since it is now an empty structure

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2018-09-26 22:04:27 +02:00
committed by Felix Fietkau
parent a8cba4623b
commit 9a0cf759f9
5 changed files with 78 additions and 82 deletions
+1 -10
View File
@@ -23,11 +23,6 @@ struct mt76x0_dev;
#define MT76X0U_EE_MAX_VER 0x0c
#define MT76X0_EEPROM_SIZE 512
struct reg_channel_bounds {
u8 start;
u8 num;
};
struct mt76x0_caldata {
s8 rssi_offset[2];
s8 lna_gain;
@@ -36,14 +31,10 @@ struct mt76x0_caldata {
u8 freq_offset;
};
struct mt76x0_eeprom_params {
u8 tx_pwr_per_chan[58];
};
int mt76x0_eeprom_init(struct mt76x0_dev *dev);
void mt76x0_read_rx_gain(struct mt76x0_dev *dev);
void mt76x0_get_tx_power_per_rate(struct mt76x0_dev *dev);
void mt76x0_get_power_info(struct mt76x0_dev *dev, u8 *info);
static inline s8 s6_to_s8(u32 val)
{