drm/i915: constify harder
[deliverable/linux.git] / drivers / gpu / drm / i915 / i915_debugfs.c
index 826ebcead3c4475544eafd86fab66715e1b0827a..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",
@@ -1949,9 +1949,6 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,
        struct intel_pipe_crc *pipe_crc = &dev_priv->pipe_crc[pipe];
        u32 val;
 
-
-       return -ENODEV;
-
        if (!IS_IVYBRIDGE(dev))
                return -ENODEV;
 
@@ -2057,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.028441 seconds and 5 git commands to generate.