mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: rely on eeprom definitions
In order to make the code more readable, rely on mt7915_eeprom_field definitions for eeprom parsing Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
82da525ad0
commit
b9a50da503
+2
-2
@@ -29,10 +29,10 @@ static int mt7915_eeprom_load(struct mt7915_dev *dev)
|
||||
|
||||
static int mt7915_check_eeprom(struct mt7915_dev *dev)
|
||||
{
|
||||
u16 val;
|
||||
u8 *eeprom = dev->mt76.eeprom.data;
|
||||
u16 val;
|
||||
|
||||
mt7915_eeprom_read(dev, 0);
|
||||
mt7915_eeprom_read(dev, MT_EE_CHIP_ID);
|
||||
val = get_unaligned_le16(eeprom);
|
||||
|
||||
switch (val) {
|
||||
|
||||
Reference in New Issue
Block a user