Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp921313rdh; Fri, 24 Nov 2023 00:48:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCj4phL190/eeqIraEPdrPYtuL5sRokKZAD5PoLperZ1NKjd24hsW0IIHQDII+oiJhJzJM X-Received: by 2002:a05:620a:1455:b0:77d:73fd:c79 with SMTP id i21-20020a05620a145500b0077d73fd0c79mr1972215qkl.53.1700815737691; Fri, 24 Nov 2023 00:48:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700815737; cv=none; d=google.com; s=arc-20160816; b=pf7yO8KL69YovcP/94UMi3qsuWr9E8sDYYtdtmWdRMBIagOq2YpgT7KBqqn6qxKwVX /zU5thPIeABgfozSuzSl48B+XmOaftpZxIKmHLSQMvfnWGT2jp6YMYv2yrEwOH89WMSA zSb9vFW8ssRb7SkMCIAqVXMU++AZukA+RJiuziqnG2SvgdjZVY1ZRBfWRdbQAFPDSxza sKnSnRaycRdMBF8+oUhm62/ZpuVdN8J05BlN+JFTHkgcvHOXaDC0E99ov2vJE0s8nb6a +SZDpHNFO1rwrKyFuOkxjGV+BakbK54dZGRz7NUg+ZfR+4ILdAPS+7V5sFxlmyuWZNX/ ONBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QP7XY4fmTz60pkcYxuQfpqnh3RDfuR8C0vo2707NHqs=; fh=W+eSkce8uvUdQ8A1Dj5F8klEXQy967eJmFo02igvYfU=; b=IOEfBOkQzzDmbVAi7fWHpnZq2EPF1Boa68MSLLHuB41ooIqKkJFQycCUbQOC+mZvas dPQ3eCwqTQYSJX2ZhpVT7D/BVxsev2u/3IosObUyTl8nnu6AdTOu1qbgvnMvDQ5RbKvP Wl6QSkq5P9dwS5lPNJhMiGi605ubOEJJdEOcMwYF3Y2YqVeDgRX+ld/4nnBoz3XCuSYa d2BHuZ+WR3kEHHLzl7LOsk6pSndev1ft53TOFYQ5i71dGOGcRI70Ua4SPbRLWKFX9Sx9 Kxtll8aa29Zx+tfDeNFuLHkUxICdO2llwqBYfjedPwY43mlcQ+zcU7g7cECImFiqTVcR AHtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hg+mOEjY; spf=pass (google.com: domain of linux-wireless+bounces-43-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-43-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x20-20020a05620a0b5400b0077d7757fe1csi2205782qkg.471.2023.11.24.00.48.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 00:48:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-43-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hg+mOEjY; spf=pass (google.com: domain of linux-wireless+bounces-43-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-43-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 713111C20E90 for ; Fri, 24 Nov 2023 08:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 828633D9F; Fri, 24 Nov 2023 08:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hg+mOEjY" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DE7172D; Fri, 24 Nov 2023 00:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700815732; x=1732351732; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3vtdvE3QnntLHyxMXQ0tiVPrz7diOVGb+IPBdmkCkGQ=; b=hg+mOEjYHdXM+rYuniWLvybL+Zpa2socPyGdw8LjUdKAuyyjkhWTTjyZ /Z7vz10i/npzDmbVR9jBHMUteOamARr7CEnOo56o+jgJS5Wybjm+CIjr4 fcm9eLoi8aVZUB6oap+n13Uon+ZVFfDblZp6a/adxvY212B6z4UVJmvqx nAcAr0I9F2tL67g0ABgdhmBFRR8kDnGduy2AEWkRbJKMIv1+sTBSMSJxU 8GaxrwB0+PIhZqMRy2siIF3KOodBviJPBFrGqqpQOvBYg22yDjQbBgx57 Oosozw8jzV3O1We2xySsZq92p2yy7dQ+qXzG0FCwpRFtatOrtGcTFggbU g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="456728959" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="456728959" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 00:48:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="760900546" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="760900546" Received: from mvlasov-mobl1.ger.corp.intel.com (HELO localhost) ([10.251.220.89]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 00:48:48 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: "John W. Linville" , Kalle Valo , Larry Finger , linux-wireless@vger.kernel.org, Ping-Ke Shih , Bjorn Helgaas , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v2 09/10] wifi: rtlwifi: Remove unused PCI related defines and struct Date: Fri, 24 Nov 2023 10:47:24 +0200 Message-Id: <20231124084725.12738-10-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231124084725.12738-1-ilpo.jarvinen@linux.intel.com> References: <20231124084725.12738-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rtlwifi driver comes with a number of PCI related defines that are unused and many would be provided by PCI core anyway if they'd be needed again. Similarly, the struct rtl_pci_capabilities_header is unused and no driver should come up their own way to access PCI Capabilities anyway. Remove the unused/duplicated PCI related defines and struct. Signed-off-by: Ilpo Järvinen --- drivers/net/wireless/realtek/rtlwifi/pci.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.h b/drivers/net/wireless/realtek/rtlwifi/pci.h index d6307197dfea..8bb35506ab1e 100644 --- a/drivers/net/wireless/realtek/rtlwifi/pci.h +++ b/drivers/net/wireless/realtek/rtlwifi/pci.h @@ -44,18 +44,6 @@ #define ATI_DEVICE_ID 0x7914 #define AMD_VENDOR_ID 0x1022 -#define PCI_MAX_BRIDGE_NUMBER 255 -#define PCI_MAX_DEVICES 32 -#define PCI_MAX_FUNCTION 8 - -#define PCI_CONF_ADDRESS 0x0CF8 /*PCI Configuration Space Address */ -#define PCI_CONF_DATA 0x0CFC /*PCI Configuration Space Data */ - -#define PCI_CLASS_BRIDGE_DEV 0x06 -#define PCI_SUBCLASS_BR_PCI_TO_PCI 0x04 -#define PCI_CAPABILITY_ID_PCI_EXPRESS 0x10 -#define PCI_CAP_ID_EXP 0x10 - #define U1DONTCARE 0xFF #define U2DONTCARE 0xFFFF #define U4DONTCARE 0xFFFFFFFF @@ -113,11 +101,6 @@ enum pci_bridge_vendor { PCI_BRIDGE_VENDOR_MAX, }; -struct rtl_pci_capabilities_header { - u8 capability_id; - u8 next; -}; - /* In new TRX flow, Buffer_desc is new concept * But TX wifi info == TX descriptor in old flow * RX wifi info == RX descriptor in old flow -- 2.30.2