mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/i915/casf: rename sumcoeff into sum_coeff
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> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260509164048.627399-5-michal.grzelak@intel.com
This commit is contained in:
parent
43291a4a1d
commit
86049a7163
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user