]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/casf: Remove redundant argument from intel_casf_filter_lut_load()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Apr 2026 17:52:41 +0000 (20:52 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Apr 2026 11:40:43 +0000 (14:40 +0300)
intel_casf_filter_lut_load() can find the crtc from the crtc_state.
No need to pass in both.

Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260407175244.19654-8-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_casf.c

index f777aae3fc57259150d419890a85995fbcbc8ead..21e84a4f9ff5a0bcf23ad0a70797a3d64e6f8655 100644 (file)
@@ -61,10 +61,10 @@ const u16 filtercoeff_3[] = {
        FILTER_COEFF_0_125,
 };
 
-static void intel_casf_filter_lut_load(struct intel_crtc *crtc,
-                                      const struct intel_crtc_state *crtc_state)
+static void intel_casf_filter_lut_load(const struct intel_crtc_state *crtc_state)
 {
        struct intel_display *display = to_intel_display(crtc_state);
+       struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
        int i;
 
        intel_de_write(display, SHRPLUT_INDEX(crtc->pipe),
@@ -270,7 +270,7 @@ void intel_casf_enable(const struct intel_crtc_state *crtc_state)
        struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
        u32 sharpness_ctl;
 
-       intel_casf_filter_lut_load(crtc, crtc_state);
+       intel_casf_filter_lut_load(crtc_state);
 
        intel_casf_write_coeff(crtc_state);