summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-11-26 17:08:02 +0100
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-12-03 16:58:57 +0100
commitd2403d5a1fb17f925e907296398ba14e8b104e89 (patch)
tree5f02fb01afad0d4b5fb93db4dff4db87c6d5e345 /src
parentbeca4dfb0e4d11d3729214967a1fe56ee5669831 (diff)
Staticise and constify output names
This array isn't used anywhere outside this file, so it can be made static. While at it, make the array const as well. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'src')
-rw-r--r--src/drmmode_display.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 773ec4c..a343778 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -961,22 +961,22 @@ static int subpixel_conv_table[7] = { 0, SubPixelUnknown,
SubPixelVerticalBGR,
SubPixelNone };
-const char *output_names[] = { "None",
- "VGA",
- "DVI",
- "DVI",
- "DVI",
- "Composite",
- "S-video",
- "LVDS",
- "CTV",
- "DIN",
- "DisplayPort",
- "HDMI",
- "HDMI",
- "TV",
- "eDP",
- "Virtual"
+static const char * const output_names[] = { "None",
+ "VGA",
+ "DVI",
+ "DVI",
+ "DVI",
+ "Composite",
+ "S-video",
+ "LVDS",
+ "CTV",
+ "DIN",
+ "DisplayPort",
+ "HDMI",
+ "HDMI",
+ "TV",
+ "eDP",
+ "Virtual",
};
static void