Skip to contentSkip to conversation

drm/amd: add missing fill of the array`s first element

PATCH Applied Bernard Zhao 2 participants 2 messages Jun 12, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd: add missing fill of the array`s first element

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.

---
 drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +1 -0
index 8c37bcc27132..7604a01be19c 100644
@@ -350,6 +350,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;
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 6 lines · Bernard Zhao

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.

Applied. Thanks!

Alex

Quoted 19 lines
---
 drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +1 -1
index 8c37bcc27132..7604a01be19c 100644
@@ -350,6 +350,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;
--

2.17.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx