mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: testmode: move mtd part to mt76_dev
Move testmode mtd variables to mt76_dev, since they are the same on each phy. Signed-off-by: Shayne Chen <[email protected]> Acked-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a897a69769
commit
b44472e998
@@ -75,8 +75,8 @@ mt76_get_of_eeprom(struct mt76_dev *dev, int len)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NL80211_TESTMODE
|
||||
dev->phy.test.mtd_name = devm_kstrdup(dev->dev, part, GFP_KERNEL);
|
||||
dev->phy.test.mtd_offset = offset;
|
||||
dev->test_mtd.name = devm_kstrdup(dev->dev, part, GFP_KERNEL);
|
||||
dev->test_mtd.offset = offset;
|
||||
#endif
|
||||
|
||||
out_put_node:
|
||||
|
||||
Reference in New Issue
Block a user