aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_edid_modes.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-26 04:49:47 -0500
committerDave Airlie <airlied@redhat.com>2011-02-22 20:13:11 -0500
commitb1f559ecdc6026ef783ccadc62a61e7da906fcb4 (patch)
tree0191b560a045c6490c326ef0c027797ba9886ffa /drivers/gpu/drm/drm_edid_modes.h
parent60b212f8ddcdbbfa8595f40300756b9ea8dd387e (diff)
drm: Mark constant arrays of drm_display_mode const
... and fixup some methods to accept the constant argument. Now that constant module arrays are loaded into read-only memory, using const appropriately has some benefits beyond warning the programmer about likely mistakes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid_modes.h')
-rw-r--r--drivers/gpu/drm/drm_edid_modes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_edid_modes.h b/drivers/gpu/drm/drm_edid_modes.h
index 6eb7592e152f..5f2064489fd5 100644
--- a/drivers/gpu/drm/drm_edid_modes.h
+++ b/drivers/gpu/drm/drm_edid_modes.h
@@ -32,7 +32,7 @@
32 * This table is copied from xfree86/modes/xf86EdidModes.c. 32 * This table is copied from xfree86/modes/xf86EdidModes.c.
33 * But the mode with Reduced blank feature is deleted. 33 * But the mode with Reduced blank feature is deleted.
34 */ 34 */
35static struct drm_display_mode drm_dmt_modes[] = { 35static const struct drm_display_mode drm_dmt_modes[] = {
36 /* 640x350@85Hz */ 36 /* 640x350@85Hz */
37 { DRM_MODE("640x350", DRM_MODE_TYPE_DRIVER, 31500, 640, 672, 37 { DRM_MODE("640x350", DRM_MODE_TYPE_DRIVER, 31500, 640, 672,
38 736, 832, 0, 350, 382, 385, 445, 0, 38 736, 832, 0, 350, 382, 385, 445, 0,
@@ -266,7 +266,7 @@ static struct drm_display_mode drm_dmt_modes[] = {
266static const int drm_num_dmt_modes = 266static const int drm_num_dmt_modes =
267 sizeof(drm_dmt_modes) / sizeof(struct drm_display_mode); 267 sizeof(drm_dmt_modes) / sizeof(struct drm_display_mode);
268 268
269static struct drm_display_mode edid_est_modes[] = { 269static const struct drm_display_mode edid_est_modes[] = {
270 { DRM_MODE("800x600", DRM_MODE_TYPE_DRIVER, 40000, 800, 840, 270 { DRM_MODE("800x600", DRM_MODE_TYPE_DRIVER, 40000, 800, 840,
271 968, 1056, 0, 600, 601, 605, 628, 0, 271 968, 1056, 0, 600, 601, 605, 628, 0,
272 DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC) }, /* 800x600@60Hz */ 272 DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC) }, /* 800x600@60Hz */