diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-29 19:12:41 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-02 20:45:56 +0300 |
commit | d26678da532401bd9227c8d79e902e59439b0140 (patch) | |
tree | 55be521eaf60a784a79acb788888e7656dbb76d1 /drivers/gpu/drm/radeon/radeon.h | |
parent | 288912cb95d156ad9fbb626b0b05d714c2ec8c8e (diff) | |
download | linux-d26678da532401bd9227c8d79e902e59439b0140.tar.xz |
drm/radeon: constify radeon_asic_ring structures
The radeon_asic_ring structures are never modified, so declare them as
const.
Done with the help of Coccinelle.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index b6cbd816537e..cf09102a2aca 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1889,7 +1889,7 @@ struct radeon_asic { void (*pad_ib)(struct radeon_ib *ib); } vm; /* ring specific callbacks */ - struct radeon_asic_ring *ring[RADEON_NUM_RINGS]; + const struct radeon_asic_ring *ring[RADEON_NUM_RINGS]; /* irqs */ struct { int (*set)(struct radeon_device *rdev); |