Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp734009pxm; Fri, 25 Feb 2022 18:40:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIPEMlqSu2NjuyTFVVYZLD4oJAZDC95gibsjBW7L4Opi0CGUK4cL3Ic0rMrETiyfoDkauB X-Received: by 2002:a17:90a:c296:b0:1bc:7a6e:623b with SMTP id f22-20020a17090ac29600b001bc7a6e623bmr6093379pjt.68.1645843241854; Fri, 25 Feb 2022 18:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645843241; cv=none; d=google.com; s=arc-20160816; b=koGvGa9yL1ueEiW3fIcf02uFuKFc4lcuD6hmfbS2RYwveIbUo4dcSQ8ezTvLMG/AMM qgy73rr0lkwnUp9/eJOvJFYbEPU5TXJqZMhEz0DSA253fRm+vq0bN87QOEjBJOLoE/aH pvrXwlhzgduALALGCBhKpmv6OyrdBKmyE+6Dr3PKUZgmM0AqmkvQWAXhCzADCNA4Jm/H hOd7c9jXh0Yq6YNDNvoz/bI54f9HIPHQ5oVdTj04diOFQPB1SUhx9pklI/6ASpOW8Hik Cwp9O8fUJZSR/XbS4YehttZdWQRDpbUUHotGccxqCoWqVRaDKLGA58A/J2ImCED+RxUJ MMuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=silFyoS5jcKcYTQdN95wbjCMfXrMxZOhhTsZe+LAneA=; b=Jg2kvyl8oJw6924fAtsdT7TdUryc7ZQnyLwor7pXjE6CcVHzFm2VU44x+TNVYlDOKR jNi4VJR5BtdWhMrXQH09HRyfUJN1Tu16o48KhRSQPXj/wBYVcDSzt6+5bIjTK22o/Zg1 beaNzXeJiPNLZ46pfCpC3MA7meEqUFXzxlVFjarP7fAO2Sh/G+4tEgE+r5TetzyTxEOb sVY89Gpj/SsgphwhgMGKERahZ66eZ+ZvQ1XL3O4NYFrfgXCv/jGUO450wwCAR1gNENVq tFZY9N1W5jXxvj6oSkpyq655XSsRsM9lbaV+4OBYcb9YHQRsmKzckxIWgW8AnYJai6FM TeMg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b7-20020a170902e94700b0014fd4dc1d58si3250058pll.397.2022.02.25.18.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:40:41 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AED3D59A45; Fri, 25 Feb 2022 18:05:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240091AbiBZA1D (ORCPT + 72 others); Fri, 25 Feb 2022 19:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232509AbiBZA1C (ORCPT ); Fri, 25 Feb 2022 19:27:02 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0BB214F87 for ; Fri, 25 Feb 2022 16:26:27 -0800 (PST) X-UUID: 6d75d0a4af1b4b4ba0652623d214b493-20220226 X-UUID: 6d75d0a4af1b4b4ba0652623d214b493-20220226 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2088959331; Sat, 26 Feb 2022 08:26:20 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Sat, 26 Feb 2022 08:26:19 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 26 Feb 2022 08:26:18 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 26 Feb 2022 08:26:18 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v2 2/2] mt76: mt7921: use mt76_hw instead of open coding it Date: Sat, 26 Feb 2022 08:26:15 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang use mt76_hw instead of open coding it Signed-off-by: Sean Wang --- v2: no change --- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c index 0f3c56530e66..349d1d0f9bac 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c @@ -491,7 +491,7 @@ mt7921_sniffer_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif) void mt7921_set_runtime_pm(struct mt7921_dev *dev) { - struct ieee80211_hw *hw = dev->mphy.hw; + struct ieee80211_hw *hw = mt76_hw(dev); struct mt76_connac_pm *pm = &dev->pm; bool monitor = !!(hw->conf.flags & IEEE80211_CONF_MONITOR); -- 2.25.1