mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
wifi: mt76: mt7921: rename mt7921_hif_ops in mt792x_hif_ops
This is a preliminary patch to introduce WiFi7 chipset support Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Deren Wu <deren.wu@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
975e122ddb
commit
838cc66797
|
|
@ -249,7 +249,7 @@ enum mt7921_eeprom_field {
|
|||
#define mt7921_mcu_init(dev) ((dev)->hif_ops->mcu_init(dev))
|
||||
#define __mt7921_mcu_drv_pmctrl(dev) ((dev)->hif_ops->drv_own(dev))
|
||||
#define __mt7921_mcu_fw_pmctrl(dev) ((dev)->hif_ops->fw_own(dev))
|
||||
struct mt7921_hif_ops {
|
||||
struct mt792x_hif_ops {
|
||||
int (*init_reset)(struct mt792x_dev *dev);
|
||||
int (*reset)(struct mt792x_dev *dev);
|
||||
int (*mcu_init)(struct mt792x_dev *dev);
|
||||
|
|
@ -278,7 +278,7 @@ struct mt792x_dev {
|
|||
|
||||
struct mt76_connac_pm pm;
|
||||
struct mt76_connac_coredump coredump;
|
||||
const struct mt7921_hif_ops *hif_ops;
|
||||
const struct mt792x_hif_ops *hif_ops;
|
||||
|
||||
struct work_struct ipv6_ns_work;
|
||||
/* IPv6 addresses for WoWLAN */
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ static int mt7921_pci_probe(struct pci_dev *pdev,
|
|||
.sta_remove = mt7921_mac_sta_remove,
|
||||
.update_survey = mt7921_update_channel,
|
||||
};
|
||||
static const struct mt7921_hif_ops mt7921_pcie_ops = {
|
||||
static const struct mt792x_hif_ops mt7921_pcie_ops = {
|
||||
.init_reset = mt7921e_init_reset,
|
||||
.reset = mt7921e_mac_reset,
|
||||
.mcu_init = mt7921e_mcu_init,
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ static int mt7921s_probe(struct sdio_func *func,
|
|||
.rd_rp = mt76s_rd_rp,
|
||||
.type = MT76_BUS_SDIO,
|
||||
};
|
||||
static const struct mt7921_hif_ops mt7921_sdio_ops = {
|
||||
static const struct mt792x_hif_ops mt7921_sdio_ops = {
|
||||
.init_reset = mt7921s_init_reset,
|
||||
.reset = mt7921s_mac_reset,
|
||||
.mcu_init = mt7921s_mcu_init,
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ static int mt7921u_probe(struct usb_interface *usb_intf,
|
|||
.sta_remove = mt7921_mac_sta_remove,
|
||||
.update_survey = mt7921_update_channel,
|
||||
};
|
||||
static const struct mt7921_hif_ops hif_ops = {
|
||||
static const struct mt792x_hif_ops hif_ops = {
|
||||
.mcu_init = mt7921u_mcu_init,
|
||||
.init_reset = mt7921u_init_reset,
|
||||
.reset = mt7921u_mac_reset,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user