]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: HWA742: fix capability query callback
authorImre Deak <imre.deak@solidboot.com>
Tue, 6 Mar 2007 16:35:00 +0000 (18:35 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 29 Mar 2007 13:34:26 +0000 (09:34 -0400)
This was changed in the generic FB code, but not updated in the HWA742
specific part.

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
drivers/video/omap/hwa742.c

index 67a7484e92195375a85355e536ff17d509be28bb..5d92f593d44f291ac7b389206e48d7876ff27f84 100644 (file)
@@ -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)