wifi: mt76: mt7921: rename mt7921_hif_ops in mt792x_hif_ops
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 28 Jun 2023 07:05:53 +0000 (15:05 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 26 Jul 2023 09:36:10 +0000 (11:36 +0200)
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>
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h
drivers/net/wireless/mediatek/mt76/mt7921/pci.c
drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
drivers/net/wireless/mediatek/mt76/mt7921/usb.c

index 617aecd..e84c6a5 100644 (file)
@@ -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 */
index 517e4d5..4227b50 100644 (file)
@@ -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,
index 86da0cb..b438947 100644 (file)
@@ -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,
index 898cb1d..b02a6d0 100644 (file)
@@ -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,