]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: move enum i9xx_plane_id to intel_display_limits.h
authorJani Nikula <jani.nikula@intel.com>
Fri, 13 Sep 2024 13:54:39 +0000 (16:54 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 17 Sep 2024 08:13:48 +0000 (11:13 +0300)
Move enum i9xx_plane_id from intel_display.h to intel_display_limits.h
to be able to reduce dependencies on intel_display.h.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1e8f9768f2d638dfa1fc72f80f0d7391c4a48bbb.1726235647.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_display_limits.h
drivers/gpu/drm/i915/gvt/cmd_parser.c

index d10608526eeec0c3d74cdea82f4b93514ae67dd5..4bdb48084cab678f24f61dbaa73acd650f95f3ab 100644 (file)
@@ -95,16 +95,6 @@ static inline bool transcoder_is_dsi(enum transcoder transcoder)
        return transcoder == TRANSCODER_DSI_A || transcoder == TRANSCODER_DSI_C;
 }
 
-/*
- * Global legacy plane identifier. Valid only for primary/sprite
- * planes on pre-g4x, and only for primary planes on g4x-bdw.
- */
-enum i9xx_plane_id {
-       PLANE_A,
-       PLANE_B,
-       PLANE_C,
-};
-
 #define plane_name(p) ((p) + 'A')
 
 #define for_each_plane_id_on_crtc(__crtc, __p) \
index c4775c99dc830a9aa690116320479dd1cb9f3fe6..f0fa27e365ab6d1fad1616266ac2b0508ce92a91 100644 (file)
@@ -49,6 +49,16 @@ enum transcoder {
        I915_MAX_TRANSCODERS
 };
 
+/*
+ * Global legacy plane identifier. Valid only for primary/sprite
+ * planes on pre-g4x, and only for primary planes on g4x-bdw.
+ */
+enum i9xx_plane_id {
+       PLANE_A,
+       PLANE_B,
+       PLANE_C,
+};
+
 /*
  * Per-pipe plane identifier.
  * I915_MAX_PLANES in the enum below is the maximum (across all platforms)
index 2f4c9c66b40b283eefbef60aed2e94c30f02025d..81d67a46cd9e4c0dd95fb13a0fdb2f4b682ab989 100644 (file)
@@ -50,7 +50,6 @@
 #include "trace.h"
 
 #include "display/i9xx_plane_regs.h"
-#include "display/intel_display.h"
 #include "display/intel_sprite_regs.h"
 #include "gem/i915_gem_context.h"
 #include "gem/i915_gem_pm.h"