diff options
author | Adam Jackson <ajax@redhat.com> | 2010-08-03 14:38:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-09 20:46:56 -0400 |
commit | fb439640145df0d3af7eacb83a19d8eb0a24002a (patch) | |
tree | 99bac1a4955d6732e311f415223dff61b7759d3e | |
parent | bf79cb914dbfe848add8bb76cbb8ff89110d29ff (diff) |
drm: Remove unused fields from drm_display_info
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 15 | ||||
-rw-r--r-- | include/drm/drm_crtc.h | 35 |
2 files changed, 1 insertions, 49 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index ea1d57291b0e..3d6abde8e785 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -1655,23 +1655,8 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid) | |||
1655 | if (quirks & (EDID_QUIRK_PREFER_LARGE_60 | EDID_QUIRK_PREFER_LARGE_75)) | 1655 | if (quirks & (EDID_QUIRK_PREFER_LARGE_60 | EDID_QUIRK_PREFER_LARGE_75)) |
1656 | edid_fixup_preferred(connector, quirks); | 1656 | edid_fixup_preferred(connector, quirks); |
1657 | 1657 | ||
1658 | connector->display_info.serration_vsync = (edid->input & DRM_EDID_INPUT_SERRATION_VSYNC) ? 1 : 0; | ||
1659 | connector->display_info.sync_on_green = (edid->input & DRM_EDID_INPUT_SYNC_ON_GREEN) ? 1 : 0; | ||
1660 | connector->display_info.composite_sync = (edid->input & DRM_EDID_INPUT_COMPOSITE_SYNC) ? 1 : 0; | ||
1661 | connector->display_info.separate_syncs = (edid->input & DRM_EDID_INPUT_SEPARATE_SYNCS) ? 1 : 0; | ||
1662 | connector->display_info.blank_to_black = (edid->input & DRM_EDID_INPUT_BLANK_TO_BLACK) ? 1 : 0; | ||
1663 | connector->display_info.video_level = (edid->input & DRM_EDID_INPUT_VIDEO_LEVEL) >> 5; | ||
1664 | connector->display_info.digital = (edid->input & DRM_EDID_INPUT_DIGITAL) ? 1 : 0; | ||
1665 | connector->display_info.width_mm = edid->width_cm * 10; | 1658 | connector->display_info.width_mm = edid->width_cm * 10; |
1666 | connector->display_info.height_mm = edid->height_cm * 10; | 1659 | connector->display_info.height_mm = edid->height_cm * 10; |
1667 | connector->display_info.gamma = edid->gamma; | ||
1668 | connector->display_info.gtf_supported = (edid->features & DRM_EDID_FEATURE_DEFAULT_GTF) ? 1 : 0; | ||
1669 | connector->display_info.standard_color = (edid->features & DRM_EDID_FEATURE_STANDARD_COLOR) ? 1 : 0; | ||
1670 | connector->display_info.display_type = (edid->features & DRM_EDID_FEATURE_DISPLAY_TYPE) >> 3; | ||
1671 | connector->display_info.active_off_supported = (edid->features & DRM_EDID_FEATURE_PM_ACTIVE_OFF) ? 1 : 0; | ||
1672 | connector->display_info.suspend_supported = (edid->features & DRM_EDID_FEATURE_PM_SUSPEND) ? 1 : 0; | ||
1673 | connector->display_info.standby_supported = (edid->features & DRM_EDID_FEATURE_PM_STANDBY) ? 1 : 0; | ||
1674 | connector->display_info.gamma = edid->gamma; | ||
1675 | 1660 | ||
1676 | return num_modes; | 1661 | return num_modes; |
1677 | } | 1662 | } |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 93a1a31b9c2d..606eb93d7db0 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -190,49 +190,16 @@ enum subpixel_order { | |||
190 | */ | 190 | */ |
191 | struct drm_display_info { | 191 | struct drm_display_info { |
192 | char name[DRM_DISPLAY_INFO_LEN]; | 192 | char name[DRM_DISPLAY_INFO_LEN]; |
193 | /* Input info */ | 193 | |
194 | bool serration_vsync; | ||
195 | bool sync_on_green; | ||
196 | bool composite_sync; | ||
197 | bool separate_syncs; | ||
198 | bool blank_to_black; | ||
199 | unsigned char video_level; | ||
200 | bool digital; | ||
201 | /* Physical size */ | 194 | /* Physical size */ |
202 | unsigned int width_mm; | 195 | unsigned int width_mm; |
203 | unsigned int height_mm; | 196 | unsigned int height_mm; |
204 | 197 | ||
205 | /* Display parameters */ | ||
206 | unsigned char gamma; /* FIXME: storage format */ | ||
207 | bool gtf_supported; | ||
208 | bool standard_color; | ||
209 | enum { | ||
210 | monochrome = 0, | ||
211 | rgb, | ||
212 | other, | ||
213 | unknown, | ||
214 | } display_type; | ||
215 | bool active_off_supported; | ||
216 | bool suspend_supported; | ||
217 | bool standby_supported; | ||
218 | |||
219 | /* Color info FIXME: storage format */ | ||
220 | unsigned short redx, redy; | ||
221 | unsigned short greenx, greeny; | ||
222 | unsigned short bluex, bluey; | ||
223 | unsigned short whitex, whitey; | ||
224 | |||
225 | /* Clock limits FIXME: storage format */ | 198 | /* Clock limits FIXME: storage format */ |
226 | unsigned int min_vfreq, max_vfreq; | 199 | unsigned int min_vfreq, max_vfreq; |
227 | unsigned int min_hfreq, max_hfreq; | 200 | unsigned int min_hfreq, max_hfreq; |
228 | unsigned int pixel_clock; | 201 | unsigned int pixel_clock; |
229 | 202 | ||
230 | /* White point indices FIXME: storage format */ | ||
231 | unsigned int wpx1, wpy1; | ||
232 | unsigned int wpgamma1; | ||
233 | unsigned int wpx2, wpy2; | ||
234 | unsigned int wpgamma2; | ||
235 | |||
236 | enum subpixel_order subpixel_order; | 203 | enum subpixel_order subpixel_order; |
237 | 204 | ||
238 | char *raw_edid; /* if any */ | 205 | char *raw_edid; /* if any */ |