mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move mt76_mcu_msg_alloc in mt76-core
Move mt76_mcu_msg_alloc in mt76-core module and remove duplicated code. mt76_mcu_msg_alloc will be reused adding support for mt7603 driver Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
28d81ff90e
commit
6e33ce6d73
@@ -96,6 +96,12 @@ struct mt76x02_patch_header {
|
||||
u8 pad[2];
|
||||
};
|
||||
|
||||
static inline struct sk_buff *
|
||||
mt76x02_mcu_msg_alloc(const void *data, int len)
|
||||
{
|
||||
return mt76_mcu_msg_alloc(data, 0, len, 0);
|
||||
}
|
||||
|
||||
int mt76x02_mcu_cleanup(struct mt76x02_dev *dev);
|
||||
int mt76x02_mcu_calibrate(struct mt76x02_dev *dev, int type, u32 param);
|
||||
int mt76x02_mcu_msg_send(struct mt76_dev *mdev, int cmd, const void *data,
|
||||
|
||||
Reference in New Issue
Block a user