[PATCH 1/2] Fixed for compatible with kernel 3.10.0-rc6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 drivers/video/Kconfig |    2 ++
 drivers/video/fbmon.c |   12 +++++-------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 2e14e0b..b0a0947 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -324,6 +324,7 @@ config FB_ARMCLCD
 	select FB_CFB_COPYAREA
 	select FB_CFB_IMAGEBLIT
 	select FB_MODE_HELPERS if OF
+	select VIDEOMODE_HELPERS
 	help
 	  This framebuffer device driver is for the ARM PrimeCell PL110
 	  Colour LCD controller.  ARM PrimeCells provide the building
@@ -340,6 +341,7 @@ config FB_ARMHDLCD
 	select FB_CFB_FILLRECT
 	select FB_CFB_COPYAREA
 	select FB_CFB_IMAGEBLIT
+	select VIDEOMODE_HELPERS
 	help
 	  This framebuffer device driver is for the ARM High Definition
 	  Colour LCD controller.
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
index 304cf37..aaa5be7 100644
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -1440,17 +1440,15 @@ void videomode_from_fb_var_screeninfo(const struct fb_var_screeninfo *var,
 	vm->vback_porch = var->upper_margin;
 	vm->vsync_len = var->vsync_len;
 
-	vm->dmt_flags = 0;
+	vm->flags = 0;
 	if (var->sync & FB_SYNC_HOR_HIGH_ACT)
-		vm->dmt_flags |= VESA_DMT_HSYNC_HIGH;
+		vm->flags |= DISPLAY_FLAGS_HSYNC_HIGH;
 	if (var->sync & FB_SYNC_VERT_HIGH_ACT)
-		vm->dmt_flags |= VESA_DMT_VSYNC_HIGH;
-
-	vm->data_flags = 0;
+		vm->flags |= DISPLAY_FLAGS_VSYNC_HIGH;
 	if (var->vmode & FB_VMODE_INTERLACED)
-		vm->data_flags |= DISPLAY_FLAGS_INTERLACED;
+		vm->flags |= DISPLAY_FLAGS_INTERLACED;
 	if (var->vmode & FB_VMODE_DOUBLE)
-		vm->data_flags |= DISPLAY_FLAGS_DOUBLESCAN;
+		vm->flags |= DISPLAY_FLAGS_DOUBLESCAN;
 }
 EXPORT_SYMBOL_GPL(videomode_from_fb_var_screeninfo);
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux