]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Remove unused NUM_ELEMENTS macros
authorLinus Probert <linus.probert@gmail.com>
Fri, 3 Apr 2026 08:22:07 +0000 (10:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Apr 2026 18:04:49 +0000 (14:04 -0400)
commita097dd7059cb1d4efb436092196885e3abd56518
tree72d5e4ae47161de43a5c8f8a7a245b6cca9cc64a
parent2d23661764450fc37208c2888c91fa320e830d63
drm/amd/display: Remove unused NUM_ELEMENTS macros

Removes unused NUM_ELEMENTS macros. Discovered while removing cases
where ARRAY_SIZE from the header <linus/array_size.h> can be used.
This also aligns with the array_size.cocci coccinelle check.

Suggested-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Linus Probert <linus.probert@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_cm.c
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_cm.c
drivers/gpu/drm/amd/display/dc/mpc/dcn20/dcn20_mpc.c
drivers/gpu/drm/amd/display/dc/mpc/dcn30/dcn30_mpc.c