On 11/25/13 03:49, Thierry Reding wrote:
This array isn't used anywhere outside this file, so it can be made
static.

Signed-off-by: Thierry Reding <tred...@nvidia.com>
---
  src/drmmode_display.c | 32 ++++++++++++++++----------------
  1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 773ec4c1c441..9965409a0307 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 *output_names[] = { "None",

While you're at it, can you make it static const char *const as well?

+                                     "VGA",
+                                     "DVI",
+                                     "DVI",
+                                     "DVI",
+                                     "Composite",
+                                     "S-video",
+                                     "LVDS",
+                                     "CTV",
+                                     "DIN",
+                                     "DisplayPort",
+                                     "HDMI",
+                                     "HDMI",
+                                     "TV",
+                                     "eDP",
+                                     "Virtual",
  };

  static void


_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to