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: Ashish Garg <ashigarg@codeaurora.org>
This commit is contained in:
parent
ba53c4518c
commit
adf3b9b07e
1 changed files with 7 additions and 3 deletions
|
@ -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__);
|
||||
|
|
Loading…
Add table
Reference in a new issue