drm/i915/color: Make color .get_config() mandatory
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Oct 2024 16:53:56 +0000 (19:53 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Oct 2024 18:54:24 +0000 (20:54 +0200)
Every platforms implements the color .get_config() hook. Just
make it mandatory.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241024165356.17756-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_color.c

index 40c1a77..1747536 100644 (file)
@@ -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);