[PATCH v2 04/10] drm/i915/casf: rename sumcoeff into sum_coeff

Michał Grzelak
2026-04-11T17:46:20Z

Stick to using snake_case in intel_casf_scaler_compute_coeff() where
it is possible.

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

diff --git a/drivers/gpu/drm/i915/display/intel_casf.c b/drivers/gpu/drm/i915/display/intel_casf.c
index b9643548d1822..cafd21a036320 100644
--- a/drivers/gpu/drm/i915/display/intel_casf.c
+++ b/drivers/gpu/drm/i915/display/intel_casf.c
@@ -218,7 +218,7 @@ static void intel_casf_scaler_compute_coeff(struct intel_crtc_state *crtc_state)
{
const u16 *filtercoeff;
u16 filter_coeff[SCALER_FILTER_NUM_TAPS];
- u16 sumcoeff = 0;
+ u16 sum_coeff = 0;
int i;

if (crtc_state->pch_pfit.casf.win_size == 0)
@@ -229,10 +229,10 @@ static void intel_casf_scaler_compute_coeff(struct intel_crtc_state *crtc_state)
filtercoeff = filtercoeff_3;

for (i = 0; i < SCALER_FILTER_NUM_TAPS; i++)
- sumcoeff += *(filtercoeff + i);
+ sum_coeff += *(filtercoeff + i);

for (i = 0; i < SCALER_FILTER_NUM_TAPS; i++) {
- filter_coeff[i] = (*(filtercoeff + i) * 100 / sumcoeff);
+ filter_coeff[i] = (*(filtercoeff + i) * 100 / sum_coeff);
convert_sharpness_coeff_binary(&crtc_state->pch_pfit.casf.coeff[i],
filter_coeff[i]);
}
--
2.45.2