msm: mdss: dsi: return true when esd status is not enabled
Panel status check returns the current state based on esd status check method. If esd method is not configured then it returns panel dead which is misleading. This change returns panel status alive if esd method is not enabled or esd check callback is not registered for certain method. Change-Id: I5df21df16618cd62b5d1495982ff889ed53ce31b Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
a309c04c54
commit
3c7a8474b0
1 changed files with 2 additions and 0 deletions
|
@ -2369,6 +2369,8 @@ static int mdss_dsi_event_handler(struct mdss_panel_data *pdata,
|
|||
case MDSS_EVENT_DSI_PANEL_STATUS:
|
||||
if (ctrl_pdata->check_status)
|
||||
rc = ctrl_pdata->check_status(ctrl_pdata);
|
||||
else
|
||||
rc = true;
|
||||
break;
|
||||
case MDSS_EVENT_PANEL_TIMING_SWITCH:
|
||||
rc = mdss_dsi_panel_timing_switch(ctrl_pdata, arg);
|
||||
|
|
Loading…
Add table
Reference in a new issue