Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1000892iog; Thu, 30 Jun 2022 14:50:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOjaxJTkImmTtHfw4kwnrCGqv2wH5CvIkZKkXwtIAB0p5UUuM1oRBW1+ylw3iAr/K5wqJv X-Received: by 2002:a17:902:edd1:b0:158:8318:b51e with SMTP id q17-20020a170902edd100b001588318b51emr17320095plk.89.1656625834316; Thu, 30 Jun 2022 14:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656625834; cv=none; d=google.com; s=arc-20160816; b=dRi9BjOFYpMmwiS1XK/cfc3JleTPNpu6CSoDZA5LN58RSiuwe2tKfrbJfk+wZZrTsn MzLeQ3AXcB0R/RLlZHJiqOatGbsj4rZtP9vdmBVukx0HcVL9OSH33uPbxd6qkC/TsMgH KKzrzLr2eata6QP08vWsYTlVAsjik/UI6Z9nss1KU/p5eddhtipLRaQngcE2pCxQdt/S wKB4K25XDymNQPHOjGhV3fwQCOh61EmnTto+KKO+j9puHygsWijx9Pzbq1DhPLgYCESK OFnUIz5RBJzQlequchdk2gzKHVYgNzorTnQbDGacxaA4fy4HhzbYk0kNzAtSxLwGONXB 7T1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1wH07i5VEkY+J1/IhmOxg1YzNC296kFp7vG3b2q68R0=; b=omhNI0POg3z2crlfwgBAc1VJYo38L0Vn6THutxHsYcOCCUzxUXj0tI8nye+8ldOf+d /QmKq88/9V+Ov9Wjw8VMOGZ/7r4ft4vrovw53OF3x+6SK3SBEETXdWLDMhRN7otr37v4 BXKPHHXM7LAT9SFaHIgEZomoZegBzueltbh1dU3gSCXxqp64zfI6nvxCIjBOGl3hTZZQ NJJAItye3KB3EN2qjANLSW/Bdojr5NbGti0abCL7MiSqjMhIbmFrmguZfAMNz0tfWgil 1JGcrFETMyeYKTUcapqnJhPxazVk6j2QeK0b3goUdyysqyy/34HjA1E/U2f6E3XT20lq 0fTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pb/2TG8S"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a63610a000000b00411806188aasi7758035pgb.457.2022.06.30.14.50.26; Thu, 30 Jun 2022 14:50:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pb/2TG8S"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237279AbiF3Vlz (ORCPT + 65 others); Thu, 30 Jun 2022 17:41:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237292AbiF3Vlx (ORCPT ); Thu, 30 Jun 2022 17:41:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF4F53D1C for ; Thu, 30 Jun 2022 14:41:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C9C6A623C3 for ; Thu, 30 Jun 2022 21:41:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7959C34115; Thu, 30 Jun 2022 21:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656625312; bh=Q4RikUHQGb5HU9nyk2ZjuTUdNvj6gA2L5Kf01vZey8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pb/2TG8S7609MSFMF+HDGJ6BBkGVsGhhxQ3UFbQu5+iG9x+4SU8j/if9PkHYokmjA pdPQyrnb0pcl7s7G98O3IgaxX3Mv9Zb7OfyMYM5pwaXLxLKBVN7v5tEAzHZOWHT+kI vwvARcOPq2rcEhwDUoujIhfl/F5uROpptvnTsiBmyH3M1dZF4EaAjJ0MaujbZbgWWV v4Qq894a8BfgA5B1oHYCbHulsR3BKCiHzCMUsPXtALwrVJ1TPGfoxgls0Th4PKuNvx aB5K73U/eWfqrCBifjS1hmqCYd0FzoAS5A7EoC3Cc6KBaDzfHrSDAz2MEO5+Xb6Rh8 omNm+NkHMlcJg== From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, evelyn.tsai@mediatek.com, sean.wang@mediatek.com Subject: [PATCH 5/5] mt76: get rid of mt76_wcid_hw routine Date: Thu, 30 Jun 2022 23:41:16 +0200 Message-Id: <363aeaceebe4499d08e1248cdecdda16bb1e1fdc.1656624320.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 mt76_wcid_hw() is no longer used. Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h index c69ee9532a8c..279e0f8e07e4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76.h +++ b/drivers/net/wireless/mediatek/mt76/mt76.h @@ -894,16 +894,6 @@ extern struct ieee80211_rate mt76_rates[12]; #define mt76_hw(dev) (dev)->mphy.hw -static inline struct ieee80211_hw * -mt76_wcid_hw(struct mt76_dev *dev, u16 wcid) -{ - if (wcid <= MT76_N_WCIDS && - mt76_wcid_mask_test(dev->wcid_phy_mask, wcid)) - return dev->phys[MT_BAND1]->hw; - - return dev->phy.hw; -} - bool __mt76_poll(struct mt76_dev *dev, u32 offset, u32 mask, u32 val, int timeout); -- 2.36.1