From: Ville Syrjälä Date: Mon, 8 Dec 2025 18:26:30 +0000 (+0200) Subject: drm/i915/vga: Introduce intel_vga_{read,write}() X-Git-Tag: v7.1-rc1~167^2~24^2~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3acd8cbbd738eb8c85fc5ec3c7d9fbee26db6d04;p=thirdparty%2Flinux.git drm/i915/vga: Introduce intel_vga_{read,write}() VGA register are rather special since they either get accessed via the global IO addresses, or possibly through MMIO on pre-g4x platforms. Wrap all VGA register accesses in intel_vga_{read,write}() to make it obvious where they get accessed. Signed-off-by: Ville Syrjälä Link: https://patch.msgid.link/20251208182637.334-13-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula --- diff --git a/drivers/gpu/drm/i915/display/intel_crt.c b/drivers/gpu/drm/i915/display/intel_crt.c index 5f9a03877ea90..dedc26f6a2b2f 100644 --- a/drivers/gpu/drm/i915/display/intel_crt.c +++ b/drivers/gpu/drm/i915/display/intel_crt.c @@ -33,6 +33,7 @@ #include #include #include +#include