summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/dc.c
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2013-08-28 10:38:55 -0700
committerJon Mayo <jmayo@nvidia.com>2014-03-19 18:04:29 -0700
commit919b86110c723749aae0b5d8bba7c2d2c95b6626 (patch)
tree32f67a83933710ce87f9bd6060e301425207f0ed /drivers/video/tegra/dc/dc.c
parent92ca1dec168c3b4cac027ab9358f85d6e2cd1c32 (diff)
video: tegra: set fb_vblank flags in fb.c
Add tegra_dc_has_vsync() accessor so one fbdev dependency can be moved outside the dc core Bug 1459374 Change-Id: I8e47e772b9627f4a0c12e8bdf4c35d31bd862098 Signed-off-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Xia Yang <xiay@nvidia.com> Reviewed-on: http://git-master/r/366183 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Jon Mayo <jmayo@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
-rw-r--r--drivers/video/tegra/dc/dc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index dae79500bce2..094b655756eb 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1552,10 +1552,9 @@ static inline void enable_dc_irq(const struct tegra_dc *dc)
enable_irq(dc->irq);
}
-void tegra_dc_get_fbvblank(struct tegra_dc *dc, struct fb_vblank *vblank)
+bool tegra_dc_has_vsync(struct tegra_dc *dc)
{
- if (dc->out->flags & TEGRA_DC_OUT_ONE_SHOT_MODE)
- vblank->flags = FB_VBLANK_HAVE_VSYNC;
+ return !!(dc->out->flags & TEGRA_DC_OUT_ONE_SHOT_MODE);
}
int tegra_dc_wait_for_vsync(struct tegra_dc *dc)