diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-05-21 22:46:31 +0000 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-08-05 12:46:32 +0000 |
commit | d60defb7b2c05b5c4b187171c09b714b0a00efe9 (patch) | |
tree | 4b859ae39154b83207c364bb3da123ec9485c329 /drivers/video/via/share.h | |
parent | 936a3f770b8de7042d793272f008ef1bb08522e9 (diff) | |
download | op-kernel-dev-d60defb7b2c05b5c4b187171c09b714b0a00efe9.zip op-kernel-dev-d60defb7b2c05b5c4b187171c09b714b0a00efe9.tar.gz |
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>
Diffstat (limited to 'drivers/video/via/share.h')
-rw-r--r-- | drivers/video/via/share.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/video/via/share.h b/drivers/video/via/share.h index 61b0bd5..2906b2d 100644 --- a/drivers/video/via/share.h +++ b/drivers/video/via/share.h @@ -22,6 +22,8 @@ #ifndef __SHARE_H__ #define __SHARE_H__ +#include "via_modesetting.h" + /* Define Bit Field */ #define BIT0 0x01 #define BIT1 0x02 @@ -648,23 +650,6 @@ #define LCD_OPENLDI 0x00 #define LCD_SPWG 0x01 -/* Define display timing -*/ -struct display_timing { - u16 hor_total; - u16 hor_addr; - u16 hor_blank_start; - u16 hor_blank_end; - u16 hor_sync_start; - u16 hor_sync_end; - u16 ver_total; - u16 ver_addr; - u16 ver_blank_start; - u16 ver_blank_end; - u16 ver_sync_start; - u16 ver_sync_end; -}; - struct crt_mode_table { int refresh_rate; int h_sync_polarity; |