pm2fb: pixclock setting restriction
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Tue, 8 May 2007 07:39:33 +0000 (00:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:32 +0000 (11:15 -0700)
commitd4a96b53125c3d31266c05f2a8432d956dd26141
tree5c2dbe527fa673b55d8f2b5f18d6c235cc5d950d
parente5d809d774fc8aa76899bde3235afb046728feed
pm2fb: pixclock setting restriction

This patch adds restrictions to calculations of m, n and p factors
which sets the pixclock for the Permedia 2V. I found during tests
that synchronization is unstable if m (divisor) is bigger than
half of the n (numerator). The patch disallows such settings
combination.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/pm2fb.c