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

Commit a814fd9c authored by Vishnuvardhan Prodduturi's avatar Vishnuvardhan Prodduturi
Browse files

mdss: dsi: replace deprecated pwm_config_us with pwm_config



Replace deprecated PWM API pwm_config_us with pwm_config to avoid
failures while setting backlight to 0.

Change-Id: I3ab9d12572578a225cf842960d08c496891e2f13
Signed-off-by: default avatarVishnuvardhan Prodduturi <vproddut@codeaurora.org>
parent 8b7300fd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -79,10 +79,10 @@ static void mdss_dsi_panel_bklt_pwm(struct mdss_dsi_ctrl_pdata *ctrl, int level)

	if (level == 0) {
		if (ctrl->pwm_enabled) {
			ret = pwm_config_us(ctrl->pwm_bl, level,
					ctrl->pwm_period);
			ret = pwm_config(ctrl->pwm_bl, 0,
					ctrl->pwm_period * NSEC_PER_USEC);
			if (ret)
				pr_err("%s: pwm_config_us() failed err=%d.\n",
				pr_err("%s: pwm_config() failed err=%d.\n",
						__func__, ret);
			pwm_disable(ctrl->pwm_bl);
		}