From patchwork Tue May 28 11:15:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13676479 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73BADC25B78 for ; Tue, 28 May 2024 11:16:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD2C711218F; Tue, 28 May 2024 11:16:15 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Kltv2WDh"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 26424112192 for ; Tue, 28 May 2024 11:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716894971; x=1748430971; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ug6SHJhuMQodIbdLkyJnhJWw1y/tRnMCrr1NE9BxFf0=; b=Kltv2WDhhSOSVsItRIJq3yHk8Q/76oWiIFMaS1kYD/Gs71f+5bhQjX8K HmYZe8pq+Q1/XzSHCnTe79zTTwMWa/fgTgf8BFov80WLXcz1A3Vax8u2X O06wK0ASkyCWJxWfVMhnNOimhf7KlwPnCFtIvNS83UBCt/ldy8GUt7PTE KdeThhO3UKKK4a/uiC/4USBHo+9T6bwvxfC6nv/o7ad33LM1p+PJ034GP 8jcT/Qh6DhW1kySUumoVmqPmiCMbrPFv0ct+h7bWmLhYq+yUGZM0mS0WU tLOSC4I+QTI5oH0C8MmzFQ0vDCnHhVOj2a+Vi2x+cFJnhENnpHwJqht3F A==; X-CSE-ConnectionGUID: dDaHxfWzQ2652hiUZPCYhQ== X-CSE-MsgGUID: cCtH//2lTpWNdZlxo/Joxg== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13353911" X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="13353911" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 04:16:11 -0700 X-CSE-ConnectionGUID: 4PI/IqUfS3+FnamV02YZsA== X-CSE-MsgGUID: FG8xP222Qzq03mPQRJfzBg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,195,1712646000"; d="scan'208";a="39877470" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.13]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 04:16:10 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Cc: jani.nikula@intel.com Subject: [PATCH 5/5] drm/i915: remove intermediate _PCH_DP_* macros Date: Tue, 28 May 2024 14:15:42 +0300 Message-Id: <0145043ff9767de93cc3dc5119f0e7152965ebe6.1716894910.git.jani.nikula@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The intermediate macros are unused. Remove them. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 06e41afd5c4e..6877e2f0fbc3 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -3599,14 +3599,9 @@ #define CNP_PWM_CGE_GATING_DISABLE (1 << 13) #define PCH_LP_PARTITION_LEVEL_DISABLE (1 << 12) -#define _PCH_DP_B 0xe4100 -#define PCH_DP_B _MMIO(_PCH_DP_B) - -#define _PCH_DP_C 0xe4200 -#define PCH_DP_C _MMIO(_PCH_DP_C) - -#define _PCH_DP_D 0xe4300 -#define PCH_DP_D _MMIO(_PCH_DP_D) +#define PCH_DP_B _MMIO(0xe4100) +#define PCH_DP_C _MMIO(0xe4200) +#define PCH_DP_D _MMIO(0xe4300) /* CPT */ #define _TRANS_DP_CTL_A 0xe0300