Skip to contentSkip to conversation

ARM: OMAP: FB: Properly initialise struct in full-screen update

PATCH In review Daniel Stone 2 participants 2 messages Apr 2, 2007 – Apr 3, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: FB: Properly initialise struct in full-screen update

Make sure out_x, out_y, out_width and out_height are initialised when we perform a full-screen update.

This hunk appears to have been dropped from the N800 omapfb merge.

---
 drivers/video/omap/omapfb_main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/video/omap/omapfb_main.c +4 -0
index 52de408..7915b1e 100644
@@ -756,6 +756,10 @@ static int omapfb_update_full_screen(str
 	win.y = 0;
 	win.width = fbi->var.xres;
 	win.height = fbi->var.yres;
+	win.out_x = 0;
+	win.out_y = 0;
+	win.out_width = fbi->var.xres;
+	win.out_height = fbi->var.yres;
 	win.format = 0;
 
 	omapfb_rqueue_lock(fbdev);
Signature · 1 line
1.4.1
#1 lore raw
Quoted 15 lines · Daniel Stone

Make sure out_x, out_y, out_width and out_height are initialised when we perform a full-screen update.

This hunk appears to have been dropped from the N800 omapfb merge.

---
 drivers/video/omap/omapfb_main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/video/omap/omapfb_main.c +0 -0
index 52de408..7915b1e 100644

drivers/video/omap/omapfb_main.c static int omapfb_update_full_screen(str · line 765

Quoted 10 lines
drivers/video/omap/omapfb_main.c +4 -0
@@ -756,6 +756,10 @@ static int omapfb_update_full_screen(str
 	win.y = 0;
 	win.width = fbi->var.xres;
 	win.height = fbi->var.yres;
+	win.out_x = 0;
+	win.out_y = 0;
+	win.out_width = fbi->var.xres;
+	win.out_height = fbi->var.yres;
 	win.format = 0;
 
 	omapfb_rqueue_lock(fbdev);

Thanks, will merge this into Imre's "Add support for OMAP framebuffer" patch in omap-drivers branch. (Assuming Imre is OK with it :)

Regards,

Tony