video: tegra: Update line length to match resolution
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 23 Nov 2012 00:58:49 +0000 (00:58 +0000)
committerTom Warren <twarren@nvidia.com>
Wed, 16 Jan 2013 20:40:06 +0000 (13:40 -0700)
commit0c5587549b89b8394e341e15833acc4be98ad916
tree34c2f968754837e72740cbc0fb2e958d30d274d1
parent3a9d879f6f64585b819af728b53be0a05037fe0d
video: tegra: Update line length to match resolution

Instead of storing the computed line length in a local variable, store
it in the global lcd_line_length variable to make sure the LCD subsystem
can properly draw content for the display resolution.

This probably wasn't noticed yet because the only board where LCD
support is currently enabled is Seaboard, which runs at a 1366x768
resolution. As it happens this is the maximum resolution supported and
also the default that is used to initialize the framebuffer before the
configuration from DT is available.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/video/tegra.c