Commit 75068994 authored by Josip Pavic's avatar Josip Pavic Committed by Alex Deucher

drm/amd/display: initialize backlight_ramping_override to false

[Why]
Stack variable params.backlight_ramping_override is uninitialized, so it
contains junk data

[How]
Initialize the variable to false
Reviewed-by: default avatarRoman Li <Roman.Li@amd.com>
Acked-by: default avatarAnson Jacob <Anson.Jacob@amd.com>
Signed-off-by: default avatarJosip Pavic <Josip.Pavic@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 028a998c
...@@ -1961,6 +1961,7 @@ static int dm_late_init(void *handle) ...@@ -1961,6 +1961,7 @@ static int dm_late_init(void *handle)
linear_lut[i] = 0xFFFF * i / 15; linear_lut[i] = 0xFFFF * i / 15;
params.set = 0; params.set = 0;
params.backlight_ramping_override = false;
params.backlight_ramping_start = 0xCCCC; params.backlight_ramping_start = 0xCCCC;
params.backlight_ramping_reduction = 0xCCCCCCCC; params.backlight_ramping_reduction = 0xCCCCCCCC;
params.backlight_lut_array_size = 16; params.backlight_lut_array_size = 16;
......
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