diff options
author | David Howells <dhowells@redhat.com> | 2013-04-12 10:23:25 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-01 17:29:43 -0400 |
commit | ce089b5472f7d0321bcb2cbc22d85bac15e4778b (patch) | |
tree | 43af07022796d28494460ffb5d796a811bf0a245 | |
parent | 0c2f343825192044ffaf542854d478e00f7f0a59 (diff) |
drm: Constify drm_proc_list[]
Constify drm_proc_list[] and related pointers.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: dri-devel@lists.freedesktop.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | drivers/gpu/drm/drm_proc.c | 6 | ||||
-rw-r--r-- | include/drm/drmP.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c index e06431897f4e..aead653c1833 100644 --- a/drivers/gpu/drm/drm_proc.c +++ b/drivers/gpu/drm/drm_proc.c | |||
@@ -49,7 +49,7 @@ | |||
49 | /** | 49 | /** |
50 | * Proc file list. | 50 | * Proc file list. |
51 | */ | 51 | */ |
52 | static struct drm_info_list drm_proc_list[] = { | 52 | static const struct drm_info_list drm_proc_list[] = { |
53 | {"name", drm_name_info, 0}, | 53 | {"name", drm_name_info, 0}, |
54 | {"vm", drm_vm_info, 0}, | 54 | {"vm", drm_vm_info, 0}, |
55 | {"clients", drm_clients_info, 0}, | 55 | {"clients", drm_clients_info, 0}, |
@@ -89,7 +89,7 @@ static const struct file_operations drm_proc_fops = { | |||
89 | * Create a given set of proc files represented by an array of | 89 | * Create a given set of proc files represented by an array of |
90 | * gdm_proc_lists in the given root directory. | 90 | * gdm_proc_lists in the given root directory. |
91 | */ | 91 | */ |
92 | static int drm_proc_create_files(struct drm_info_list *files, int count, | 92 | static int drm_proc_create_files(const struct drm_info_list *files, int count, |
93 | struct proc_dir_entry *root, struct drm_minor *minor) | 93 | struct proc_dir_entry *root, struct drm_minor *minor) |
94 | { | 94 | { |
95 | struct drm_device *dev = minor->dev; | 95 | struct drm_device *dev = minor->dev; |
@@ -172,7 +172,7 @@ int drm_proc_init(struct drm_minor *minor, int minor_id, | |||
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int drm_proc_remove_files(struct drm_info_list *files, int count, | 175 | static int drm_proc_remove_files(const struct drm_info_list *files, int count, |
176 | struct drm_minor *minor) | 176 | struct drm_minor *minor) |
177 | { | 177 | { |
178 | struct list_head *pos, *q; | 178 | struct list_head *pos, *q; |
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 2d94d7413d71..af5332059328 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1022,7 +1022,7 @@ struct drm_info_list { | |||
1022 | struct drm_info_node { | 1022 | struct drm_info_node { |
1023 | struct list_head list; | 1023 | struct list_head list; |
1024 | struct drm_minor *minor; | 1024 | struct drm_minor *minor; |
1025 | struct drm_info_list *info_ent; | 1025 | const struct drm_info_list *info_ent; |
1026 | struct dentry *dent; | 1026 | struct dentry *dent; |
1027 | }; | 1027 | }; |
1028 | 1028 | ||