diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-06-02 19:41:23 +0000 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-07-23 14:35:50 +0000 |
commit | cc3fd679a344468e892a109b8de3e2948ce14e0f (patch) | |
tree | df07323f350c4d90c81e7e2f0584d23c20e2e347 /drivers/video/via/hw.c | |
parent | ad0676cf81c240e3857dc090c9ce0dde7537ac93 (diff) | |
download | linux-3.10-cc3fd679a344468e892a109b8de3e2948ce14e0f.tar.gz linux-3.10-cc3fd679a344468e892a109b8de3e2948ce14e0f.tar.bz2 linux-3.10-cc3fd679a344468e892a109b8de3e2948ce14e0f.zip |
viafb: simplify lcd size "detection"
viafb: simplify lcd size "detection"
Remove all occurences of get_lcd_size_method as only the values
GET_LCD_SIZE_BY_VGA_BIOS and GET_LCD_SIZE_BY_USER_SETTING were used
which had the identical code so there is no need to make things look
more complicated than they actually are.
Just a bit of of cleanup, really no regressions expected.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Diffstat (limited to 'drivers/video/via/hw.c')
-rw-r--r-- | drivers/video/via/hw.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index b996803ae2c..05be8c13765 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c @@ -1791,8 +1791,6 @@ void viafb_init_chip_info(int chip_type) viafb_set_iga_path(); viaparinfo->lvds_setting_info->display_method = viafb_lcd_dsp_method; - viaparinfo->lvds_setting_info->get_lcd_size_method = - GET_LCD_SIZE_BY_USER_SETTING; viaparinfo->lvds_setting_info->lcd_mode = viafb_lcd_mode; viaparinfo->lvds_setting_info2->display_method = viaparinfo->lvds_setting_info->display_method; @@ -1946,13 +1944,6 @@ static void init_tmds_chip_info(void) static void init_lvds_chip_info(void) { - if (viafb_lcd_panel_id > LCD_PANEL_ID_MAXIMUM) - viaparinfo->lvds_setting_info->get_lcd_size_method = - GET_LCD_SIZE_BY_VGA_BIOS; - else - viaparinfo->lvds_setting_info->get_lcd_size_method = - GET_LCD_SIZE_BY_USER_SETTING; - viafb_lvds_trasmitter_identify(); viafb_init_lcd_size(); viafb_init_lvds_output_interface(&viaparinfo->chip_info->lvds_chip_info, |