mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "disp: msm: dsi: fix return value for alter_esd_check_mode"
This commit is contained in:
commit
484801e93c
1 changed files with 4 additions and 1 deletions
|
|
@ -1521,12 +1521,15 @@ static ssize_t debugfs_alter_esd_check_mode(struct file *file,
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (!esd_config->esd_enabled)
|
||||
if (!esd_config->esd_enabled) {
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!strcmp(buf, "te_signal_check\n")) {
|
||||
if (display->panel->panel_mode == DSI_OP_VIDEO_MODE) {
|
||||
DSI_INFO("TE based ESD check for Video Mode panels is not allowed\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
DSI_INFO("ESD check is switched to TE mode by user\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue