drm/i915: Make the debugfs structures const
authorLespiau, Damien <damien.lespiau@intel.com>
Thu, 17 Oct 2013 18:09:56 +0000 (19:09 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 02:05:30 +0000 (12:05 +1000)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_debugfs.c

index 061182a0ce1b3deeb4812b6fa9b4eb6ac98f46ef..454e186f736833add47bcf3e3130402a5d3ee43a 100644 (file)
@@ -2671,7 +2671,7 @@ static int i915_debugfs_create(struct dentry *root,
        return drm_add_fake_info_node(minor, ent, fops);
 }
 
-static struct drm_info_list i915_debugfs_list[] = {
+static const struct drm_info_list i915_debugfs_list[] = {
        {"i915_capabilities", i915_capabilities, 0},
        {"i915_gem_objects", i915_gem_object_info, 0},
        {"i915_gem_gtt", i915_gem_gtt_info, 0},
@@ -2713,7 +2713,7 @@ static struct drm_info_list i915_debugfs_list[] = {
 };
 #define I915_DEBUGFS_ENTRIES ARRAY_SIZE(i915_debugfs_list)
 
-static struct i915_debugfs_files {
+static const struct i915_debugfs_files {
        const char *name;
        const struct file_operations *fops;
 } i915_debugfs_files[] = {