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

Commit adf3b9b0 authored by Ashish Garg's avatar Ashish Garg
Browse files

msm: mdss: configure gpio to enable backlight



Fix an issue in the configuration of the gpio that controls
the backlight. Toggle the gpio properly during reset.

Change-Id: Ic177b7bbb69211449be386188e1c3154a95708ec
Signed-off-by: default avatarAshish Garg <ashigarg@codeaurora.org>
parent ba53c451
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -365,13 +365,17 @@ int mdss_dsi_panel_reset(struct mdss_panel_data *pdata, int enable)

			if (gpio_is_valid(ctrl_pdata->bklt_en_gpio)) {

				if (ctrl_pdata->bklt_en_gpio_invert)
				if (ctrl_pdata->bklt_en_gpio_invert) {
					rc = gpio_direction_output(
						ctrl_pdata->bklt_en_gpio, 0);
				else
					gpio_set_value(
						(ctrl_pdata->bklt_en_gpio), 0);
				} else {
					rc = gpio_direction_output(
						ctrl_pdata->bklt_en_gpio, 1);

					gpio_set_value(
						(ctrl_pdata->bklt_en_gpio), 1);
				}
				if (rc) {
					pr_err("%s: unable to set dir for bklt gpio\n",
						__func__);