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

Ville Syrjala ville.syrjala at linux.intel.com
Thu Oct 24 16:53:56 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

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

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

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);
 
-- 
2.45.2



More information about the Intel-gfx mailing list