@@ -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.
@@ -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);