Merge "disp: msm: dsi: fix gpio warning message"

This commit is contained in:
qctecmdr
2021-06-11 14:26:06 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 13 additions and 7 deletions

View File

@@ -258,6 +258,9 @@ static int dsi_panel_reset(struct dsi_panel *panel)
struct dsi_panel_reset_config *r_config = &panel->reset_config;
int i;
if (!gpio_is_valid(r_config->reset_gpio))
goto skip_reset_gpio;
if (gpio_is_valid(panel->reset_config.disp_en_gpio)) {
rc = gpio_direction_output(panel->reset_config.disp_en_gpio, 1);
if (rc) {
@@ -285,6 +288,7 @@ static int dsi_panel_reset(struct dsi_panel *panel)
(r_config->sequence[i].sleep_ms * 1000) + 100);
}
skip_reset_gpio:
if (gpio_is_valid(panel->bl_config.en_gpio)) {
rc = gpio_direction_output(panel->bl_config.en_gpio, 1);
if (rc)