mirror of https://gitee.com/openkylin/linux.git
fbdev: omap2: panel-dpi: in .disable first disable backlight then display
This makes .disable operate in reverse order compared to .enable. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
85d90b1251
commit
7f496cfd6b
|
@ -102,12 +102,12 @@ static void panel_dpi_disable(struct omap_dss_device *dssdev)
|
||||||
if (!omapdss_device_is_enabled(dssdev))
|
if (!omapdss_device_is_enabled(dssdev))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (ddata->enable_gpio)
|
|
||||||
gpiod_set_value_cansleep(ddata->enable_gpio, 0);
|
|
||||||
|
|
||||||
if (gpio_is_valid(ddata->backlight_gpio))
|
if (gpio_is_valid(ddata->backlight_gpio))
|
||||||
gpio_set_value_cansleep(ddata->backlight_gpio, 0);
|
gpio_set_value_cansleep(ddata->backlight_gpio, 0);
|
||||||
|
|
||||||
|
if (ddata->enable_gpio)
|
||||||
|
gpiod_set_value_cansleep(ddata->enable_gpio, 0);
|
||||||
|
|
||||||
in->ops.dpi->disable(in);
|
in->ops.dpi->disable(in);
|
||||||
|
|
||||||
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
|
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
|
||||||
|
|
Loading…
Reference in New Issue