diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-09-09 23:58:04 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-19 12:31:41 +0200 |
commit | edaa580bc830e5197272c80cf12c98cf16e48bb7 (patch) | |
tree | a092a28f9a4e0aa77cc8d7ba89bcf1facee58674 /drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h | |
parent | bc3669017282cee1cde0e770956723fcb532cc55 (diff) | |
download | lwn-edaa580bc830e5197272c80cf12c98cf16e48bb7.tar.gz lwn-edaa580bc830e5197272c80cf12c98cf16e48bb7.zip |
mt76: move shared mcu_calibrate routine in mt76x02-lib module
Move mcu_calibrate routine in mt76x02-lib module since it is
shared between USB and PCI code. Moreover remove duplicated
code
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h b/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h index cbdf6fc09971..2f5af3dad2bb 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mcu.h @@ -86,6 +86,8 @@ struct mt76x02_patch_header { }; int mt76x02_mcu_cleanup(struct mt76_dev *dev); +int mt76x02_mcu_calibrate(struct mt76_dev *dev, int type, + u32 param, bool wait); struct sk_buff *mt76x02_mcu_msg_alloc(const void *data, int len); int mt76x02_mcu_msg_send(struct mt76_dev *dev, struct sk_buff *skb, int cmd, bool wait_resp); |