viafb: modetable conversion
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 17 Feb 2012 07:55:06 +0000 (07:55 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 8 Mar 2012 18:41:35 +0000 (18:41 +0000)
commit9864ca20c50c2fcaba63767a336e16c88b46d7ad
tree9fa6b91a21415cd5dc5abbb1933555ae365ede5d
parent91dc1be8f698eb016343d534159a919678e3889c
viafb: modetable conversion

This patch converts the modetables used in viafb to
- remove the strange thing that sync_end and blanking_end contained
  the length and not the absolute value
- remove hundreds of useless defines
- use fb_videomode and not our own definition so modes defined in
  the subsystem and received via EDID are compatible with ours

As the modes are now stored in a flat structure and no longer in a
tree like thing the lookup time was increased but as it is a rare
event anyway it shouldn't matter. Otherwise the behaviour should be
the same as before.

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