From e63a5a155e564294563542e0ff0bdc81003c55df Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Tue, 6 Mar 2007 18:35:00 +0200 Subject: [PATCH] ARM: OMAP: HWA742: fix capability query callback This was changed in the generic FB code, but not updated in the HWA742 specific part. Signed-off-by: Imre Deak --- drivers/video/omap/hwa742.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/video/omap/hwa742.c b/drivers/video/omap/hwa742.c index 67a7484e921..5d92f593d44 100644 --- a/drivers/video/omap/hwa742.c +++ b/drivers/video/omap/hwa742.c @@ -893,14 +893,15 @@ static int setup_tearsync(unsigned long pix_clk, int extif_div) hs_pol_inv, vs_pol_inv, extif_div); } -static unsigned long hwa742_get_caps(void) +static void hwa742_get_caps(int plane, struct omapfb_caps *caps) { - unsigned long caps; - - caps = OMAPFB_CAPS_MANUAL_UPDATE; + hwa742.int_ctrl->get_caps(plane, caps); + caps->ctrl |= OMAPFB_CAPS_MANUAL_UPDATE | + OMAPFB_CAPS_WINDOW_PIXEL_DOUBLE; if (hwa742.te_connected) - caps |= OMAPFB_CAPS_TEARSYNC; - return caps; + caps->ctrl |= OMAPFB_CAPS_TEARSYNC; + caps->wnd_color |= (1 << OMAPFB_COLOR_RGB565) | + (1 << OMAPFB_COLOR_YUV420); } static void hwa742_suspend(void) -- 2.41.1