summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2015-06-13 15:26:58 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-06-15 15:31:02 +0300
commit0519ade71852701ec76ee7f8a0b37fe5a5504f98 (patch)
treed11e8fb27a69c625452926a03d141a01393d0f25 /drivers/acpi
parentee89209402e0b9a733169901063afdf0ae7909db (diff)
downloadlinux-0519ade71852701ec76ee7f8a0b37fe5a5504f98.tar.xz
ACPI / scan: constify ACPI device ids
Make the button ACPI device ID array static const. Safes 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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index b19283b336c7..0a099917a006 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -1673,7 +1673,7 @@ static int acpi_bus_extract_wakeup_device_power_package(acpi_handle handle,
static void acpi_wakeup_gpe_init(struct acpi_device *device)
{
- struct acpi_device_id button_device_ids[] = {
+ static const struct acpi_device_id button_device_ids[] = {
{"PNP0C0C", 0},
{"PNP0C0D", 0},
{"PNP0C0E", 0},