drm/amd/display: Fix KUnit checkpatch warnings

[WHY]
Clean up the AMDGPU DM KUnit tests after checkpatch reported an
invalid sizeof(void) allocation, typed kzalloc patterns, and a
repeated word in a kernel-doc summary. Clarify the test name that
covers an active CRTC state transition.

[HOW]
- Use sizeof(cpu_ptr) for the fake CPU pointer allocation.
- Replace typed kzalloc(sizeof(*object), ...) calls with
  kzalloc_obj(*object, ...) in the connector, IRQ, plane, and
  atomic-state tests.
- Rename the CRTC active-state test and update its kernel-doc and
  suite registration.

Assisted-by: Copilot:GPT-5.6-Luna
Reviewed-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Hung 2026-09-10 14:06:40 -06:00 • committed by Alex Deucher
commit a3e8dc37a6
3 changed files with 5 additions and 5 deletions