]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd: add missing fill of the array`s first element
authorBernard Zhao <bernard@vivo.com>
Fri, 12 Jun 2020 11:58:48 +0000 (19:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:21 +0000 (01:59 -0400)
In function fill_iram_v_2, the ram_table->bright_neg_gain`s
first element [0][0] seems to be missing. This change is just
to make the code a bit readable.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power_helpers.c

index fe22dd223408550ef08a32029e32f6e44b373a68..859724771a75dc6a7b4dc1e8c5ee3eaff7e2dbf0 100644 (file)
@@ -353,6 +353,7 @@ void fill_iram_v_2(struct iram_table_v_2 *ram_table, struct dmcu_iram_parameters
        ram_table->bright_pos_gain[4][1] = 0x20;
        ram_table->bright_pos_gain[4][2] = 0x20;
        ram_table->bright_pos_gain[4][3] = 0x20;
+       ram_table->bright_neg_gain[0][0] = 0x00;
        ram_table->bright_neg_gain[0][1] = 0x00;
        ram_table->bright_neg_gain[0][2] = 0x00;
        ram_table->bright_neg_gain[0][3] = 0x00;