From 06696ebe674de7f65d4f5046a8639b358c6b358c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 29 Nov 2018 15:08:52 -0700 Subject: video: Allow driver to specify the line length At present line_length is always calculated in video_post_probe(). But some hardware may use a different line length, e.g. with a 1366-wide display. Allow the driver to set this value if needed. Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin --- drivers/pci/pci_rom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/pci') diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index eaacd4066e..7d9b75c2c4 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -331,6 +331,7 @@ int vbe_setup_video_priv(struct vesa_mode_info *vesa, return log_msg_ret("No x resolution", -ENXIO); uc_priv->xsize = vesa->x_resolution; uc_priv->ysize = vesa->y_resolution; + uc_priv->line_length = vesa->bytes_per_scanline; switch (vesa->bits_per_pixel) { case 32: case 24: -- cgit