ACPI / video: constify ACPI and DMI id tables
authorMathias Krause <minipli@googlemail.com>
Sat, 13 Jun 2015 12:26:59 +0000 (14:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Jun 2015 12:12:17 +0000 (14:12 +0200)
Make the video ACPI device ID array static and constify the DMI system
IDs array.  Saves us a little bit of code.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video_detect.c

index c42feb2bacd0eb783bc94f0e10187d08ea907eea..be825802b228ca2dcde59a03ef514a95765f3999 100644 (file)
@@ -109,7 +109,7 @@ find_video(acpi_handle handle, u32 lvl, void *context, void **rv)
        struct pci_dev *dev;
        struct acpi_device *acpi_dev;
 
-       const struct acpi_device_id video_ids[] = {
+       static const struct acpi_device_id video_ids[] = {
                {ACPI_VIDEO_HID, 0},
                {"", 0},
        };
@@ -134,7 +134,7 @@ static int video_detect_force_vendor(const struct dmi_system_id *d)
        return 0;
 }
 
-static struct dmi_system_id video_detect_dmi_table[] = {
+static const struct dmi_system_id video_detect_dmi_table[] = {
        /* On Samsung X360, the BIOS will set a flag (VDRV) if generic
         * ACPI backlight device is used. This flag will definitively break
         * the backlight interface (even the vendor interface) untill next
This page took 0.026135 seconds and 5 git commands to generate.