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

Commit 20db960f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: dsi: do not enable PWM when setting bl to 0"

parents 987b50fe 80501790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -573,7 +573,7 @@ static int dsi_panel_update_pwm_backlight(struct dsi_panel *panel,
		return 0;
	}

	if (!bl->pwm_enabled) {
	if (bl_lvl != 0 && !bl->pwm_enabled) {
		rc = pwm_enable(bl->pwm_bl);
		if (rc) {
			DSI_ERR("[%s] failed to enable pwm, rc=\n", panel->name,