]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/colorop: do not include headers from headers
authorJani Nikula <jani.nikula@intel.com>
Thu, 18 Dec 2025 14:18:07 +0000 (16:18 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 19 Dec 2025 09:05:28 +0000 (11:05 +0200)
drm_colorop.h doesn't need the intel_display_types.h include for
anything. Don't include headers from headers if it can be avoided.

Fixes: 3e9b06559aa1 ("drm/i915: Add intel_color_op")
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Link: https://patch.msgid.link/20251218141807.409751-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_colorop.c
drivers/gpu/drm/i915/display/intel_colorop.h

index f2fc0d8780ceea108be5cb2dd5cb020da25cc642..1d84933f05aa9fd48dbab9033ff32eeeaf345bf5 100644 (file)
@@ -2,7 +2,9 @@
 /*
  * Copyright © 2025 Intel Corporation
  */
+
 #include "intel_colorop.h"
+#include "intel_display_types.h"
 
 struct intel_colorop *to_intel_colorop(struct drm_colorop *colorop)
 {
index 21d58eb9f3d0f6518fa7eaaa5202399874002603..9276eee6e75a3eb326b0adfc6f14d02f9f57985e 100644 (file)
@@ -6,7 +6,9 @@
 #ifndef __INTEL_COLOROP_H__
 #define __INTEL_COLOROP_H__
 
-#include "intel_display_types.h"
+enum intel_color_block;
+struct drm_colorop;
+struct intel_colorop;
 
 struct intel_colorop *to_intel_colorop(struct drm_colorop *colorop);
 struct intel_colorop *intel_colorop_alloc(void);