]> git.baikalelectronics.ru Git - kernel.git/commit
viafb: always return the best possible clock
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 10 Mar 2011 22:39:22 +0000 (22:39 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sat, 12 Mar 2011 10:22:00 +0000 (10:22 +0000)
commit6cd97159fa0f435a1a77140fd8bf23277d7ddd4b
treef57989f5f90c9b28035ec41bf5769176d0b95475
parent7fd74133ac8c3013e23eb475e6022c1ad6020f02
viafb: always return the best possible clock

Before this patch only clocks that perfectly match were used and if
none existed this was not handled properly. This patch changes this
to always use the closest clock supported. This should behave like
before for clocks that have a perfect match but be much saner for
clocks which are slightly off.

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