Commit d5aaa9db authored by Camille Cho's avatar Camille Cho Committed by Alex Deucher

drm/amd/display: correct comment in set_default_brightness_aux()

0 nits is a valid default value for OLED panels. So, update the relevant
comment to account for that fact.
Reviewed-by: default avatarKrunoslav Kovac <krunoslav.kovac@amd.com>
Signed-off-by: default avatarCamille Cho <camille.cho@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 288c0254
...@@ -287,7 +287,7 @@ bool set_default_brightness_aux(struct dc_link *link) ...@@ -287,7 +287,7 @@ bool set_default_brightness_aux(struct dc_link *link)
if (link && link->dpcd_sink_ext_caps.bits.oled == 1) { if (link && link->dpcd_sink_ext_caps.bits.oled == 1) {
if (!read_default_bl_aux(link, &default_backlight)) if (!read_default_bl_aux(link, &default_backlight))
default_backlight = 150000; default_backlight = 150000;
// if < 1 nits or > 5000, it might be wrong readback // if > 5000, it might be wrong readback. 0 nits is a valid default value for OLED panel.
if (default_backlight < 1000 || default_backlight > 5000000) if (default_backlight < 1000 || default_backlight > 5000000)
default_backlight = 150000; default_backlight = 150000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment