Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1058678pxm; Wed, 23 Feb 2022 17:03:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhOa1Sw/IQyyGK/7mtus/PTPHSNxdq6J8APLB3tVZBZDHt0FRMHVfkZZSEba2GQ+aRIfuq X-Received: by 2002:a17:902:cacb:b0:14f:ef7f:b0c4 with SMTP id y11-20020a170902cacb00b0014fef7fb0c4mr120226pld.135.1645664634220; Wed, 23 Feb 2022 17:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645664634; cv=none; d=google.com; s=arc-20160816; b=OPTnr3lCn+Wo8qZnGV41N+1QBnMQF4ZHafjcjkP2GJBPZmJQR6woPcQ3h90D2o1ejW EhPW0CbCGzuL1ISks65/7+W7nXF/rjxGykTxFEgBY+a4iAOP8Er+ZkhYDQfF0bktfh4q Vgccnrk/MJjPMuFmHr7EbyWa2v2XnQ6Mcbqut/I3XJoabuSAfpJ6MvIkldo8jF6zLPkT Edh0AnPFoKhysIiKFxNyyfw89qFh+V6Chcegnuw8dR08mez4kXXbgHqIkSM0stG67pHy 1yuAJzXeiOMTF4zgTz85POsLFaxsGmGIKQg7wvC6WUV6IjonihTLOGQSHKzKoktQscCr XXjg== 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=keM63LsBT2Vrs7J2hm91U1duuRZQMLTGZwhQYucsoM0=; b=Bq5FIPZiyrpDIyfsuytmkSN8Zh+qLpyAdW8uum2dxV8JV1E6AJ0HatSvTiYg/zYEN7 FMSpaelzgLqa7baq1TnB+9Wk1pTGek6BvrglqBtzRrzIUfhO/9LIFRuQuxWNn8V3WAF+ Xj7NhS8Dw/BdP7uByTgT2rRzd4uZj5gfjtEiNnJxx1KQvpx5IhyFls5eDbdjCvjPFSW3 WktjUHmHScXxXXhzdPpnV2J2nAWa5dKD7e0I7tT+g9wHIcNBOr3IM6XZraliuQkyn1IP 4XzVIwfFRSudsu4W5jgPFho6ONw/N6YyCiGA9hL5UEeqdMKQmGZHAqqemiI58Hll2vy+ 4C2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h23si1189311pgb.402.2022.02.23.17.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:03:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 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 0364D141E0F; Wed, 23 Feb 2022 16:54:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235473AbiBWWfB (ORCPT + 73 others); Wed, 23 Feb 2022 17:35:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242927AbiBWWfA (ORCPT ); Wed, 23 Feb 2022 17:35:00 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 433801B780 for ; Wed, 23 Feb 2022 14:34:28 -0800 (PST) X-UUID: f8a7ea584a49495ba78d0a4212fa3cd4-20220224 X-UUID: f8a7ea584a49495ba78d0a4212fa3cd4-20220224 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2137577363; Thu, 24 Feb 2022 06:34:22 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) 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; Thu, 24 Feb 2022 06:34:21 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 24 Feb 2022 06:34:21 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH 2/2] mt76: mt7921: use mt76_hw instead of open coding it Date: Thu, 24 Feb 2022 06:34:18 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <7dcfc62d67f1f51e6627cc24000393844aa2b649.1645655280.git.objelf@gmail.com> References: <7dcfc62d67f1f51e6627cc24000393844aa2b649.1645655280.git.objelf@gmail.com> 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 --- 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 051a573141f4..7e5b4aaf3b3a 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