mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
disp: msm:: reset the param value to the default value
During the panel is enable, we reset the value of the panel register with default setting. Change-Id: Idf30593736e66386581b729ae28023035cded122 Signed-off-by: houdz1 <houdz1@motorola.com> Reviewed-on: https://gerrit.mot.com/1697597 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
84265334e2
commit
5c202c9614
3 changed files with 14 additions and 0 deletions
|
|
@ -8772,6 +8772,7 @@ int dsi_display_enable(struct dsi_display *display)
|
|||
display->name, rc);
|
||||
goto error;
|
||||
}
|
||||
dsi_panel_reset_param(display->panel);
|
||||
}
|
||||
|
||||
if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {
|
||||
|
|
|
|||
|
|
@ -854,6 +854,17 @@ int dsi_panel_set_param(struct dsi_panel *panel,
|
|||
return rc;
|
||||
}
|
||||
|
||||
void dsi_panel_reset_param(struct dsi_panel *panel)
|
||||
{
|
||||
struct panel_param *param;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < PARAM_ID_NUM; i++) {
|
||||
param = &dsi_panel_param[i];
|
||||
param->value = param->default_value;
|
||||
}
|
||||
}
|
||||
|
||||
static int dsi_panel_bl_register(struct dsi_panel *panel)
|
||||
{
|
||||
int rc = 0;
|
||||
|
|
|
|||
|
|
@ -459,4 +459,6 @@ void dsi_panel_dealloc_cmd_packets(struct dsi_panel_cmd_set *set);
|
|||
int dsi_panel_set_param(struct dsi_panel *panel,
|
||||
struct msm_param_info *param_info);
|
||||
|
||||
void dsi_panel_reset_param(struct dsi_panel *panel);
|
||||
|
||||
#endif /* _DSI_PANEL_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue