summaryrefslogtreecommitdiff
path: root/linux-core/intel_display.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-20 16:32:58 -0700
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-20 16:32:58 -0700
commit9ca4932054a5bde5dda500ea346ad101bb5c80a0 (patch)
tree3c7084953e0c5b20b5136196da6872af7e23f84d /linux-core/intel_display.c
parent2d1de1fc6b9ab3524a1247f56ddeea7238c04ea3 (diff)
Add a mode name generation wrapper to make name format changes easier.
Diffstat (limited to 'linux-core/intel_display.c')
-rw-r--r--linux-core/intel_display.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c
index d0a3a465..a6f94fb1 100644
--- a/linux-core/intel_display.c
+++ b/linux-core/intel_display.c
@@ -1057,9 +1057,8 @@ struct drm_display_mode *intel_crtc_mode_get(drm_device_t *dev,
mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1;
mode->vsync_start = (vsync & 0xffff) + 1;
mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1;
- /* FIXME: pull name generation into a common routine */
- snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d", mode->hdisplay,
- mode->vdisplay);
+
+ drm_mode_set_name(mode);
drm_mode_set_crtcinfo(mode, 0);
return mode;