Commit 7d74795b authored by Lespiau, Damien's avatar Lespiau, Damien Committed by Dave Airlie

drm: Constify struct drm_info_list * arguments

Those functions are just reading data from those pointers.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent a276d6ce
...@@ -84,7 +84,7 @@ static const struct file_operations drm_debugfs_fops = { ...@@ -84,7 +84,7 @@ static const struct file_operations drm_debugfs_fops = {
* Create a given set of debugfs files represented by an array of * Create a given set of debugfs files represented by an array of
* gdm_debugfs_lists in the given root directory. * gdm_debugfs_lists in the given root directory.
*/ */
int drm_debugfs_create_files(struct drm_info_list *files, int count, int drm_debugfs_create_files(const struct drm_info_list *files, int count,
struct dentry *root, struct drm_minor *minor) struct dentry *root, struct drm_minor *minor)
{ {
struct drm_device *dev = minor->dev; struct drm_device *dev = minor->dev;
...@@ -188,7 +188,7 @@ int drm_debugfs_init(struct drm_minor *minor, int minor_id, ...@@ -188,7 +188,7 @@ int drm_debugfs_init(struct drm_minor *minor, int minor_id,
* *
* Remove all debugfs entries created by debugfs_init(). * Remove all debugfs entries created by debugfs_init().
*/ */
int drm_debugfs_remove_files(struct drm_info_list *files, int count, int drm_debugfs_remove_files(const struct drm_info_list *files, int count,
struct drm_minor *minor) struct drm_minor *minor)
{ {
struct list_head *pos, *q; struct list_head *pos, *q;
......
...@@ -1477,10 +1477,11 @@ extern struct drm_local_map *drm_getsarea(struct drm_device *dev); ...@@ -1477,10 +1477,11 @@ extern struct drm_local_map *drm_getsarea(struct drm_device *dev);
#if defined(CONFIG_DEBUG_FS) #if defined(CONFIG_DEBUG_FS)
extern int drm_debugfs_init(struct drm_minor *minor, int minor_id, extern int drm_debugfs_init(struct drm_minor *minor, int minor_id,
struct dentry *root); struct dentry *root);
extern int drm_debugfs_create_files(struct drm_info_list *files, int count, extern int drm_debugfs_create_files(const struct drm_info_list *files,
struct dentry *root, struct drm_minor *minor); int count, struct dentry *root,
extern int drm_debugfs_remove_files(struct drm_info_list *files, int count,
struct drm_minor *minor); struct drm_minor *minor);
extern int drm_debugfs_remove_files(const struct drm_info_list *files,
int count, struct drm_minor *minor);
extern int drm_debugfs_cleanup(struct drm_minor *minor); extern int drm_debugfs_cleanup(struct drm_minor *minor);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment