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

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

Merge "mdss: fix dynamic FPS mode switch configuration"

parents e4b110ec e38d0f33
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -711,9 +711,22 @@ static ssize_t mdss_fb_change_dfps_mode(struct device *dev,
		return len;
	}

	if (mfd->idle_time != 0) {
		pr_err("ERROR: Idle time is not disabled.\n");
		return len;
	}

	if (pinfo->current_fps != pinfo->default_fps) {
		pr_err("ERROR: panel not configured to default fps\n");
		return len;
	}

	pinfo->dynamic_fps = true;
	pinfo->dfps_update = dfps_mode;

	if (pdata->next)
		pdata->next->panel_info.dfps_update = dfps_mode;

	return len;
}