diff mbox series

[4/4] drm/i915/color: Make color .get_config() mandatory

Message ID 20241024165356.17756-5-ville.syrjala@linux.intel.com (mailing list archive)
State New
Headers show
Series drm/i915/color: Debug improvements and intel_display conversion | expand

Commit Message

Ville Syrjala Oct. 24, 2024, 4:53 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Every platforms implements the color .get_config() hook. Just
make it mandatory.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_color.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
index 40c1a770f6d9..174753625bca 100644
--- a/drivers/gpu/drm/i915/display/intel_color.c
+++ b/drivers/gpu/drm/i915/display/intel_color.c
@@ -2055,8 +2055,7 @@  void intel_color_get_config(struct intel_crtc_state *crtc_state)
 {
 	struct intel_display *display = to_intel_display(crtc_state);
 
-	if (display->funcs.color->get_config)
-		display->funcs.color->get_config(crtc_state);
+	display->funcs.color->get_config(crtc_state);
 
 	display->funcs.color->read_luts(crtc_state);