viafb: use more compact modesetting functions
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sat, 21 May 2011 22:46:31 +0000 (22:46 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 5 Aug 2011 12:46:32 +0000 (12:46 +0000)
commitd60defb7b2c05b5c4b187171c09b714b0a00efe9
tree4b859ae39154b83207c364bb3da123ec9485c329
parent936a3f770b8de7042d793272f008ef1bb08522e9
viafb: use more compact modesetting functions

This patch replaces the old timing setup code with a redesigned one.
The new code might be slightly faster as it has no conditinals and
does not write the same register multiple times. Also it makes the
comparison to the documentation easier.
Regressions are unlikely but could happen as a lot of hardware is
undocumented.

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