diff options
| author | Alex Hung <alex.hung@amd.com> | 2026-06-12 17:20:27 -0600 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:31:16 -0400 |
| commit | 703e3ae7565d0b7eeaa91d679b4ef3e38f257735 (patch) | |
| tree | 1d7e42e14869178968b7778131102469f7ca29e4 /tools/perf/scripts/python | |
| parent | 7a39b1c3b2e6b27f4230a20ccf9ac5a2737fa8b0 (diff) | |
drm/amd/display: Extract backlight helpers for KUnit tests
[WHAT]
Extract shared backlight device index lookup and property
setup into testable helpers. The duplicated bd-to-index
scan in update_status/get_brightness is replaced by
amdgpu_dm_backlight_get_device_index(), and the inline
backlight_properties calculation is replaced by
amdgpu_dm_backlight_fill_props().
Add KUnit coverage for both new helpers. Keep the runtime
power_supply_is_system_supplied() call at the caller so
the helpers remain pure and deterministic under test.
Assisted-by: Copilot:GPT-5.5
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
