From patchwork Wed Feb 2 11:25:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 12732845 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 DF491C433EF for ; Wed, 2 Feb 2022 11:25:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C4EF10E354; Wed, 2 Feb 2022 11:25:22 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8364510E3A9 for ; Wed, 2 Feb 2022 11:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643801121; x=1675337121; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DV2v/FVdgWKeVUHYLdtHFNHGNqC9dfi3oizVTweXr+g=; b=fbxJ/cf1XswDrz/NiaDZbkw9rZ5P89Of+dVWJjkNfu/v2YzpwgB9y8lw BNA7HpmpPvwkEyxTMJeubLtjrRUwKYD4VFnSUdLYVPzpb+QAZ+/HvrBra uTpV2PjjffEybG1wwixGC7QgyTdx49yE2hmbEZw1B1J9SL6Mw3/bMTKmQ YoaPga+y7m5xolB8ZwFSfhfQn4glB00sSZYQbXiYtUJKaBF3jTcwbXIh+ 6kXuAUZzS7Duch0sdHCxerfYWzUERqqjdDDMs0uLJqdiiWUHNznYcUspl 1tW0sfKBP/eSnPK4Lz+ScJrO5Qsy5VjylJBOvG4qbUWfGWcGZEtvYwfai g==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="272379511" X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="272379511" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 03:25:21 -0800 X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="482794406" Received: from markeyp-mobl.ger.corp.intel.com (HELO localhost) ([10.252.6.210]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 03:25:18 -0800 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Wed, 2 Feb 2022 13:25:08 +0200 Message-Id: <20220202112509.1886660-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v2 1/2] drm/i915/vga: switch to use VGA definitions from video/vga.h 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: , Cc: jani.nikula@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The video/vga.h has macros for the VGA registers. Switch to use them. v2: Use direct 0x01 instead of the confusing VGA_SEQ_CLOCK_MODE (Ville) Suggested-by: Matt Roper Cc: Ville Syrjälä Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_vga.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_vga.c b/drivers/gpu/drm/i915/display/intel_vga.c index fa779f7ea415..b5d058404c14 100644 --- a/drivers/gpu/drm/i915/display/intel_vga.c +++ b/drivers/gpu/drm/i915/display/intel_vga.c @@ -7,6 +7,7 @@ #include #include +#include