OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d927ebb
)
mt76: mt7915: rely on eeprom definitions
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Tue, 10 Nov 2020 11:17:37 +0000
(12:17 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 4 Dec 2020 13:31:14 +0000
(14:31 +0100)
In order to make the code more readable, rely on mt7915_eeprom_field
definitions for eeprom parsing
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
index
cf3caa0
..
35954a4
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
@@
-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) {