Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d775522 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: check esd reg readback value correctly"

parents 1458cd49 ffad495a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -488,7 +488,6 @@ static bool dsi_display_validate_reg_read(struct dsi_panel *panel)
	int i, j = 0;
	int len = 0, *lenp;
	int group = 0, count = 0;
	struct dsi_display_mode *mode;
	struct drm_panel_esd_config *config;

	if (!panel)
@@ -497,8 +496,7 @@ static bool dsi_display_validate_reg_read(struct dsi_panel *panel)
	config = &(panel->esd_config);

	lenp = config->status_valid_params ?: config->status_cmds_rlen;
	mode = panel->cur_mode;
	count = mode->priv_info->cmd_sets[DSI_CMD_SET_PANEL_STATUS].count;
	count = config->status_cmd.count;

	for (i = 0; i < count; i++)
		len += lenp[i];