[PATCH v1 03/10] drm/i915/casf: rename t into tap in casf_coeff()

Michał Grzelak
2026-03-28T14:33:18Z

Add more description to the casf_coeff()'s argument and
casf_coeff_tap()'s returned value.

Cc: Nemesa Garg <nemesa.garg@intel.com>
Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
---
drivers/gpu/drm/i915/display/intel_casf.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_casf.c b/drivers/gpu/drm/i915/display/intel_casf.c
index 13682de697be..d59e5ed4275c 100644
--- a/drivers/gpu/drm/i915/display/intel_casf.c
+++ b/drivers/gpu/drm/i915/display/intel_casf.c
@@ -174,12 +174,12 @@ static int casf_coeff_tap(int i)
return i % SCALER_FILTER_NUM_TAPS;
}

-static u32 casf_coeff(struct intel_crtc_state *crtc_state, int t)
+static u32 casf_coeff(struct intel_crtc_state *crtc_state, int tap)
{
struct scaler_filter_coeff value;
u32 coeff;

- value = crtc_state->hw.casf_params.coeff[t];
+ value = crtc_state->hw.casf_params.coeff[tap];
value.sign = 0;

coeff = value.sign << 15 | value.exp << 12 | value.mantissa << 3;
@@ -209,13 +209,13 @@ static void intel_casf_write_coeff(struct intel_crtc_state *crtc_state)

for (i = 0; i < 17 * SCALER_FILTER_NUM_TAPS; i += 2) {
u32 tmp;
- int t;
+ int tap;

- t = casf_coeff_tap(i);
- tmp = casf_coeff(crtc_state, t);
+ tap = casf_coeff_tap(i);
+ tmp = casf_coeff(crtc_state, tap);

- t = casf_coeff_tap(i + 1);
- tmp |= casf_coeff(crtc_state, t) << 16;
+ tap = casf_coeff_tap(i + 1);
+ tmp |= casf_coeff(crtc_state, tap) << 16;

intel_de_write_fw(display, GLK_PS_COEF_DATA_SET(crtc->pipe, id, 0),
tmp);
--
2.45.2