]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm: Mark constant arrays of drm_display_mode const
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jan 2011 09:49:47 +0000 (09:49 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Feb 2011 01:13:11 +0000 (11:13 +1000)
commitb1f559ecdc6026ef783ccadc62a61e7da906fcb4
tree0191b560a045c6490c326ef0c027797ba9886ffa
parent60b212f8ddcdbbfa8595f40300756b9ea8dd387e
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>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_edid_modes.h
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/i915/intel_sdvo.c
drivers/gpu/drm/nouveau/nv17_tv.c
drivers/gpu/drm/nouveau/nv17_tv.h
drivers/gpu/drm/nouveau/nv17_tv_modes.c
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
include/drm/drm_crtc.h