drm/i915: constify harder
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 09:51:54 +0000 (11:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 11:32:18 +0000 (13:32 +0200)
We not only want const strings, but a const array of them. Reported by
checkpatch.pl

Cc: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index d1674b6b749bf4b2b932243ba9d8616c766746f8..5fce5d89b68a79c00af6eb42d46dedc336afd287 100644 (file)
@@ -1909,7 +1909,7 @@ static int i915_pipe_crc_create(struct dentry *root, struct drm_minor *minor,
        return drm_add_fake_info_node(minor, ent, info);
 }
 
-static const char *pipe_crc_sources[] = {
+static const char * const pipe_crc_sources[] = {
        "none",
        "plane1",
        "plane2",
@@ -2054,7 +2054,7 @@ enum intel_pipe_crc_object {
        PIPE_CRC_OBJECT_PIPE,
 };
 
-static const char *pipe_crc_objects[] = {
+static const char * const pipe_crc_objects[] = {
        "pipe",
 };
 
This page took 0.026848 seconds and 5 git commands to generate.