diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-11-28 17:19:59 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-12 17:40:52 -0400 |
commit | 458981c3886133667e020900f53538f1fbc3ea1d (patch) | |
tree | 6407e8c02cb4715dde31cdef9685f175dae6043b /drivers/video/sh_mipi_dsi.c | |
parent | 5864ace19a2546912308e94432c1cf52d5945afe (diff) |
fbdev: sh_mobile_lcdc: Return display connection state in display_on
Return true if the display is connected and false otherwise. Set the fb
info state to FBINFO_STATE_SUSPENDED in the sh_mobile_lcdc driver when
the display is not connected.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/video/sh_mipi_dsi.c')
-rw-r--r-- | drivers/video/sh_mipi_dsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c index 1ede247547f9..5ff3742aeb08 100644 --- a/drivers/video/sh_mipi_dsi.c +++ b/drivers/video/sh_mipi_dsi.c | |||
@@ -412,7 +412,7 @@ static int mipi_display_on(struct sh_mobile_lcdc_entity *entity) | |||
412 | 412 | ||
413 | sh_mipi_dsi_enable(mipi, true); | 413 | sh_mipi_dsi_enable(mipi, true); |
414 | 414 | ||
415 | return 0; | 415 | return SH_MOBILE_LCDC_DISPLAY_CONNECTED; |
416 | 416 | ||
417 | mipi_display_on_fail1: | 417 | mipi_display_on_fail1: |
418 | pm_runtime_put_sync(&mipi->pdev->dev); | 418 | pm_runtime_put_sync(&mipi->pdev->dev); |