]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
viafb: eliminate modetable dependancy of LCD modesetting
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 7 Aug 2011 13:08:45 +0000 (13:08 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 7 Aug 2011 13:08:45 +0000 (13:08 +0000)
commitbfe7d5f9396d5f2607454fd9ff89397fa3ba9a32
tree3a50238daff730fc71d0fbc7ecc321e2b235ea23
parent4fbf4bfe6fb5460bfd4a18ca7c7f21ffec941b07
viafb: eliminate modetable dependancy of LCD modesetting

This patch removes the need for knowing the modetable structure
within the LCD modesetting function. The magic 60Hz refresh rate was
already there as always the first entry for a resolution was choosen
based on the ascending refresh rate ordering in the modetable.
For all but one this is at least 60Hz, if only higher frequencies
available we choose those like the code before did. The exception is
OLPC but that resolution has only one frequency so we get the same
behaviour there as well.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/hw.c
drivers/video/via/lcd.c
drivers/video/via/lcd.h