diff options
author | Chris Wilson | 2010-09-19 15:46:27 +0200 |
---|---|---|
committer | Chris Wilson | 2010-09-21 12:19:58 +0200 |
commit | e070868ef2101ce548d4fbb25edfd301e59fb719 (patch) | |
tree | 910049b85bdc892f950e6da31f6e3e739e047ec6 /drivers/gpu | |
parent | drm/i915: add a new BSD ring buffer for Sandybridge (diff) | |
download | kernel-qcow2-linux-e070868ef2101ce548d4fbb25edfd301e59fb719.tar.gz kernel-qcow2-linux-e070868ef2101ce548d4fbb25edfd301e59fb719.tar.xz kernel-qcow2-linux-e070868ef2101ce548d4fbb25edfd301e59fb719.zip |
drm/i915/ringbuffer: Mark the initialisation structs as constant.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 478406d1886c..f0b44d3ba958 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -792,7 +792,7 @@ void intel_fill_struct(struct drm_device *dev, intel_ring_advance(dev, ring); } -static struct intel_ring_buffer render_ring = { +static const struct intel_ring_buffer render_ring = { .name = "render ring", .id = RING_RENDER, .regs = { @@ -830,7 +830,7 @@ static struct intel_ring_buffer render_ring = { /* ring buffer for bit-stream decoder */ -static struct intel_ring_buffer bsd_ring = { +static const struct intel_ring_buffer bsd_ring = { .name = "bsd ring", .id = RING_BSD, .regs = { @@ -948,7 +948,7 @@ gen6_bsd_ring_dispatch_gem_execbuffer(struct drm_device *dev, } /* ring buffer for Video Codec for Gen6+ */ -static struct intel_ring_buffer gen6_bsd_ring = { +static const struct intel_ring_buffer gen6_bsd_ring = { .name = "gen6 bsd ring", .id = RING_BSD, .regs = { |