Merge "disp: msm: dsi: fix gpio warning message"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
9685e229a2
@@ -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)
|
||||
|
Reference in New Issue
Block a user