drm/amd/display: fix problems in power_helper
authorWayne Lin <Wayne.Lin@amd.com>
Fri, 22 Sep 2023 04:04:39 +0000 (12:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Oct 2023 22:35:56 +0000 (18:35 -0400)
commit52ed23dc29db2fe80e8332200e66a0e5a5c20683
tree2ab16d363654ed455581dcff34a4abbf3de844c0
parenta19d934986b0f750ca95b5da2ebe54ee27fc25e8
drm/amd/display: fix problems in power_helper

[Why & How]
Fix following problems:
- In abm config, forget to initialize config.ambient_thresholds_lux.
- Adjust the coding style problem
- Restrict to call psr_su_set_dsc_slice_height() under edp only

Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power_helpers.c