Commit 95a686dc authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau

wifi: mt76: mt7921: convert acpisar and clc pointers to void

Convert acpisar and clc pointers in mt7921_dev structure to void.
This is a preliminary patch to add WiFi7 chipset support
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarDeren Wu <deren.wu@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 6db1b497
...@@ -308,6 +308,7 @@ int mt7921_init_acpi_sar_power(struct mt7921_phy *phy, bool set_default) ...@@ -308,6 +308,7 @@ int mt7921_init_acpi_sar_power(struct mt7921_phy *phy, bool set_default)
u8 mt7921_acpi_get_flags(struct mt7921_phy *phy) u8 mt7921_acpi_get_flags(struct mt7921_phy *phy)
{ {
struct mt7921_acpi_sar *acpisar = phy->acpisar;
struct mt7921_asar_fg *fg; struct mt7921_asar_fg *fg;
struct { struct {
u8 acpi_idx; u8 acpi_idx;
...@@ -319,10 +320,10 @@ u8 mt7921_acpi_get_flags(struct mt7921_phy *phy) ...@@ -319,10 +320,10 @@ u8 mt7921_acpi_get_flags(struct mt7921_phy *phy)
u8 flags = BIT(0); u8 flags = BIT(0);
int i, j; int i, j;
if (!phy->acpisar) if (!acpisar)
return 0; return 0;
fg = phy->acpisar->fg; fg = acpisar->fg;
if (!fg) if (!fg)
return flags; return flags;
......
...@@ -222,10 +222,9 @@ struct mt7921_phy { ...@@ -222,10 +222,9 @@ struct mt7921_phy {
struct sk_buff_head scan_event_list; struct sk_buff_head scan_event_list;
struct delayed_work scan_work; struct delayed_work scan_work;
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
struct mt7921_acpi_sar *acpisar; void *acpisar;
#endif #endif
void *clc[MT7921_CLC_MAX_NUM];
struct mt7921_clc *clc[MT7921_CLC_MAX_NUM];
struct work_struct roc_work; struct work_struct roc_work;
struct timer_list roc_timer; struct timer_list roc_timer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment