gpu: drm: i915: intel_display.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 7 Dec 2014 18:29:17 +0000 (19:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Dec 2014 08:41:40 +0000 (09:41 +0100)
Remove the function intel_output_name() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h

index 42e661e05a3248ffe4d641d80fafd29fc8630693..d5153a4f90fec4e3db3ab59c05e8c16a872967dd 100644 (file)
@@ -12302,28 +12302,6 @@ static bool has_edp_a(struct drm_device *dev)
        return true;
 }
 
-const char *intel_output_name(int output)
-{
-       static const char *names[] = {
-               [INTEL_OUTPUT_UNUSED] = "Unused",
-               [INTEL_OUTPUT_ANALOG] = "Analog",
-               [INTEL_OUTPUT_DVO] = "DVO",
-               [INTEL_OUTPUT_SDVO] = "SDVO",
-               [INTEL_OUTPUT_LVDS] = "LVDS",
-               [INTEL_OUTPUT_TVOUT] = "TV",
-               [INTEL_OUTPUT_HDMI] = "HDMI",
-               [INTEL_OUTPUT_DISPLAYPORT] = "DisplayPort",
-               [INTEL_OUTPUT_EDP] = "eDP",
-               [INTEL_OUTPUT_DSI] = "DSI",
-               [INTEL_OUTPUT_UNKNOWN] = "Unknown",
-       };
-
-       if (output < 0 || output >= ARRAY_SIZE(names) || !names[output])
-               return "Invalid";
-
-       return names[output];
-}
-
 static bool intel_crt_present(struct drm_device *dev)
 {
        struct drm_i915_private *dev_priv = dev->dev_private;
index 53b696e841cd4e7201750f244be3afd5f9f6264a..61a88fa6997831c15c8cf861d821e0c68188b390 100644 (file)
@@ -875,7 +875,6 @@ void intel_audio_codec_enable(struct intel_encoder *encoder);
 void intel_audio_codec_disable(struct intel_encoder *encoder);
 
 /* intel_display.c */
-const char *intel_output_name(int output);
 bool intel_has_pending_fb_unpin(struct drm_device *dev);
 int intel_pch_rawclk(struct drm_device *dev);
 void intel_mark_busy(struct drm_device *dev);