summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-06-22 17:07:16 +0200
committerKalle Valo <kvalo@codeaurora.org>2020-06-23 10:43:41 +0200
commitdc7bd30b97aac8a97eccef0ffe31f6cefb6e2c3e (patch)
tree38f4830d8fbcf8a353c8b43fff0adfe99efe0359 /drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
parentmt76: mt7663u: fix memory leaks in mt7663u_probe (diff)
downloadlinux-dc7bd30b97aac8a97eccef0ffe31f6cefb6e2c3e.tar.xz
linux-dc7bd30b97aac8a97eccef0ffe31f6cefb6e2c3e.zip
mt76: mt7615: fix EEPROM buffer size
Avoid adding MT7615_EEPROM_SIZE twice. Rename MT7615_EEPROM_EXTRA_DATA to MT7615_EEPROM_FULL_SIZE, since it already includes MT7615_EEPROM_SIZE Fixes: ad380ad1ebbe ("mt76: mt7615: add support for applying DC offset calibration from EEPROM") Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200622150716.49622-1-nbd@nbd.name
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
index 40fed7adc58a..a024dee10362 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.h
@@ -17,7 +17,7 @@
#define MT7615_EEPROM_TXDPD_SIZE 216
#define MT7615_EEPROM_TXDPD_COUNT (44 + 3)
-#define MT7615_EEPROM_EXTRA_DATA (MT7615_EEPROM_TXDPD_OFFSET + \
+#define MT7615_EEPROM_FULL_SIZE (MT7615_EEPROM_TXDPD_OFFSET + \
MT7615_EEPROM_TXDPD_COUNT * \
MT7615_EEPROM_TXDPD_SIZE)