Skip to content

Commit

Permalink
ACPI / video: constify ACPI and DMI id tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
minipli authored and rafaeljw committed Jun 15, 2015
1 parent 654a182 commit 4a4f01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/video_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};
Expand All @@ -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
Expand Down

0 comments on commit 4a4f01a

Please sign in to comment.