Fix: display blinking issue

Brightness parameter was being updated more than once 
and more than one way inside dsi_panel_update_backlight function.

This parameter should be set just once and only in one way inside
dsi_panel_update_backlight function.

Change-Id: I8090e04034fa2fb2c4590b643df0a8a303759129
Reviewed-on: https://gerrit.mot.com/2081098
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Rafael Ortolan <rafones@motorola.com>
Reviewed-by: Shuo Yan <shuoyan@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Flavio Ipiranga authored and Gilberto Gambugge committed 2023-06-01 00:43:20 -03:00
1 parent a854918923
commit 8256494319
1 file changed
+1 -4
+1 -4
View File
@@ -832,10 +832,7 @@ static int dsi_panel_update_backlight(struct dsi_panel *panel,
if (panel->bl_config.bl_dcs_subtype == 0xc2)
rc = dsi_panel_dcs_set_display_brightness_c2(dsi, bl_lvl);
else
rc = mipi_dsi_dcs_set_display_brightness(dsi, bl_lvl);
if (bl->bl_2bytes_enable)
else if (bl->bl_2bytes_enable)
rc = mipi_dsi_dcs_set_display_brightness_2bytes(dsi, bl_lvl);
else
rc = mipi_dsi_dcs_set_display_brightness(dsi, bl_lvl);