linux/drivers/gpu/drm/amd/display/dc/dml/dcn20
Aurabindo Pillai 1e815068fb drm/amd/display: use unsigned types for local pipe and REG_GET counters
Two small type fixes that match how the values are actually consumed:

- decide_zstate_support() iterates from 0 to pipe_count, which is
  unsigned. Make the loop index unsigned int.

- hpo_enc401_read_state() reads HDMI_PIXEL_ENCODING and
  HDMI_DEEP_COLOR_DEPTH via REG_GET_2(), which internally casts the
  output pointer to (uint32_t *). Passing the address of an int is a
  strict-aliasing wart even when the sizes match. Declare the locals
  as uint32_t.

No behavioural change since the values are only compared against small
non-negative constants.

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2026-06-04 15:24:45 -04:00
..
dcn20_fpu.c drm/amd/display: use unsigned types for local pipe and REG_GET counters 2026-06-04 15:24:45 -04:00
dcn20_fpu.h drm/amd/display: Fix fpu guard warning 2026-04-17 15:24:45 -04:00
display_mode_vba_20.c drm/amd/display: Fix type mismatches in DML and normalize loop bounds 2026-05-05 09:56:52 -04:00
display_mode_vba_20.h
display_mode_vba_20v2.c drm/amd/display: Fix type mismatches in DML and normalize loop bounds 2026-05-05 09:56:52 -04:00
display_mode_vba_20v2.h drm/amd/display: support "dummy pstate" 2019-07-18 14:27:26 -05:00
display_rq_dlg_calc_20.c drm/amd/display: Fix narrowing boundaries in dml 2026-04-28 14:30:03 -04:00
display_rq_dlg_calc_20.h drm/amd/display: Pass display_pipe_params_st as const in DML 2021-09-23 15:17:29 -04:00
display_rq_dlg_calc_20v2.c drm/amd/display: Fix narrowing boundaries in dml 2026-04-28 14:30:03 -04:00
display_rq_dlg_calc_20v2.h drm/amd/display: Pass display_pipe_params_st as const in DML 2021-09-23 15:17:29 -04:00