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

Commit 29a427d6 authored by Vara Reddy's avatar Vara Reddy
Browse files

drm/msm/dsi-staging: send backlight commands in dsi active state.



Add a check to make sure that dsi panel is in
initialized state to send backlight commands to
the panel.

Change-Id: Ic5ea72b1dc86e6b1968625f55789979ffbe1980f
Signed-off-by: default avatarVara Reddy <varar@codeaurora.org>
parent 6d6d60c0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -84,6 +84,10 @@ int dsi_display_set_backlight(void *display, u32 bl_lvl)
		return -EINVAL;

	panel = dsi_display->panel;

	if (!dsi_panel_initialized(panel))
		return -EINVAL;

	panel->bl_config.bl_level = bl_lvl;

	/* scale backlight */