diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-12-18 21:31:55 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-03-09 13:58:30 -0500 |
commit | d90108765b64e39e88e59f51d05ac652f0e53fea (patch) | |
tree | 4fe90d18b02d7eead1213592bde71a3d13794f3a /drivers/video/via | |
parent | c8350be26237e2b850b9611dbe55304ad6ebc6c7 (diff) |
viafb: strip some structures
This patch removes some write-only variables from the device management
structures. Just a small cleanup.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via')
-rw-r--r-- | drivers/video/via/chip.h | 4 | ||||
-rw-r--r-- | drivers/video/via/hw.c | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/drivers/video/via/chip.h b/drivers/video/via/chip.h index 3e8aacd0609e..781f3aa66b42 100644 --- a/drivers/video/via/chip.h +++ b/drivers/video/via/chip.h | |||
@@ -139,9 +139,6 @@ struct chip_information { | |||
139 | 139 | ||
140 | struct crt_setting_information { | 140 | struct crt_setting_information { |
141 | int iga_path; | 141 | int iga_path; |
142 | int h_active; | ||
143 | int v_active; | ||
144 | int bpp; | ||
145 | int refresh_rate; | 142 | int refresh_rate; |
146 | }; | 143 | }; |
147 | 144 | ||
@@ -159,7 +156,6 @@ struct lvds_setting_information { | |||
159 | int h_active; | 156 | int h_active; |
160 | int v_active; | 157 | int v_active; |
161 | int bpp; | 158 | int bpp; |
162 | int refresh_rate; | ||
163 | int lcd_panel_hres; | 159 | int lcd_panel_hres; |
164 | int lcd_panel_vres; | 160 | int lcd_panel_vres; |
165 | int display_method; | 161 | int display_method; |
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index 9ecf48620d02..b0b02783b6ee 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c | |||
@@ -2117,9 +2117,6 @@ void viafb_update_device_setting(int hres, int vres, | |||
2117 | int bpp, int vmode_refresh, int flag) | 2117 | int bpp, int vmode_refresh, int flag) |
2118 | { | 2118 | { |
2119 | if (flag == 0) { | 2119 | if (flag == 0) { |
2120 | viaparinfo->crt_setting_info->h_active = hres; | ||
2121 | viaparinfo->crt_setting_info->v_active = vres; | ||
2122 | viaparinfo->crt_setting_info->bpp = bpp; | ||
2123 | viaparinfo->crt_setting_info->refresh_rate = | 2120 | viaparinfo->crt_setting_info->refresh_rate = |
2124 | vmode_refresh; | 2121 | vmode_refresh; |
2125 | 2122 | ||
@@ -2129,13 +2126,9 @@ void viafb_update_device_setting(int hres, int vres, | |||
2129 | viaparinfo->lvds_setting_info->h_active = hres; | 2126 | viaparinfo->lvds_setting_info->h_active = hres; |
2130 | viaparinfo->lvds_setting_info->v_active = vres; | 2127 | viaparinfo->lvds_setting_info->v_active = vres; |
2131 | viaparinfo->lvds_setting_info->bpp = bpp; | 2128 | viaparinfo->lvds_setting_info->bpp = bpp; |
2132 | viaparinfo->lvds_setting_info->refresh_rate = | ||
2133 | vmode_refresh; | ||
2134 | viaparinfo->lvds_setting_info2->h_active = hres; | 2129 | viaparinfo->lvds_setting_info2->h_active = hres; |
2135 | viaparinfo->lvds_setting_info2->v_active = vres; | 2130 | viaparinfo->lvds_setting_info2->v_active = vres; |
2136 | viaparinfo->lvds_setting_info2->bpp = bpp; | 2131 | viaparinfo->lvds_setting_info2->bpp = bpp; |
2137 | viaparinfo->lvds_setting_info2->refresh_rate = | ||
2138 | vmode_refresh; | ||
2139 | } else { | 2132 | } else { |
2140 | 2133 | ||
2141 | if (viaparinfo->tmds_setting_info->iga_path == IGA2) { | 2134 | if (viaparinfo->tmds_setting_info->iga_path == IGA2) { |
@@ -2147,15 +2140,11 @@ void viafb_update_device_setting(int hres, int vres, | |||
2147 | viaparinfo->lvds_setting_info->h_active = hres; | 2140 | viaparinfo->lvds_setting_info->h_active = hres; |
2148 | viaparinfo->lvds_setting_info->v_active = vres; | 2141 | viaparinfo->lvds_setting_info->v_active = vres; |
2149 | viaparinfo->lvds_setting_info->bpp = bpp; | 2142 | viaparinfo->lvds_setting_info->bpp = bpp; |
2150 | viaparinfo->lvds_setting_info->refresh_rate = | ||
2151 | vmode_refresh; | ||
2152 | } | 2143 | } |
2153 | if (IGA2 == viaparinfo->lvds_setting_info2->iga_path) { | 2144 | if (IGA2 == viaparinfo->lvds_setting_info2->iga_path) { |
2154 | viaparinfo->lvds_setting_info2->h_active = hres; | 2145 | viaparinfo->lvds_setting_info2->h_active = hres; |
2155 | viaparinfo->lvds_setting_info2->v_active = vres; | 2146 | viaparinfo->lvds_setting_info2->v_active = vres; |
2156 | viaparinfo->lvds_setting_info2->bpp = bpp; | 2147 | viaparinfo->lvds_setting_info2->bpp = bpp; |
2157 | viaparinfo->lvds_setting_info2->refresh_rate = | ||
2158 | vmode_refresh; | ||
2159 | } | 2148 | } |
2160 | } | 2149 | } |
2161 | } | 2150 | } |