summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_types.h
diff options
context:
space:
mode:
authorCamille Cho <camille.cho@amd.com>2023-11-03 12:08:42 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-11-29 16:49:00 -0500
commit43b8ac4b34ec239bccf4a692c1227ef51a95a4d2 (patch)
tree1aaeb0151cb70856c3cbd68502b46c9a581b0f05 /drivers/gpu/drm/amd/display/dc/dc_types.h
parent37f4382b64a2b01109a0ed5c05f58d3f86385e10 (diff)
downloadlinux-stable-43b8ac4b34ec239bccf4a692c1227ef51a95a4d2.tar.gz
linux-stable-43b8ac4b34ec239bccf4a692c1227ef51a95a4d2.tar.bz2
linux-stable-43b8ac4b34ec239bccf4a692c1227ef51a95a4d2.zip
drm/amd/display: Simplify brightness initialization
[Why] Remove the brightness cache in DC. It uses a single value to represent the brightness for both SDR and HDR mode. This leads to flash in HDR on/off. It also unconditionally programs brightness as in HDR mode. This may introduce garbage on SDR mode in miniLED panel. [How] Simplify the initialization flow by removing the DC cache and taking what panel has as default. Expand the mechanism for PWM to DPCD Aux to restore cached brightness value generally. Cc: stable@vger.kernel.org # 6.1+ Reviewed-by: Krunoslav Kovac <krunoslav.kovac@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Camille Cho <camille.cho@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_types.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h
index 4a60d2c47686..a2f6c994a2a9 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_types.h
@@ -991,10 +991,6 @@ struct link_mst_stream_allocation_table {
struct link_mst_stream_allocation stream_allocations[MAX_CONTROLLER_NUM];
};
-struct backlight_settings {
- uint32_t backlight_millinits;
-};
-
/* PSR feature flags */
struct psr_settings {
bool psr_feature_enabled; // PSR is supported by sink