projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee89209
)
ACPI / scan: constify ACPI device ids
author
Mathias Krause
<minipli@googlemail.com>
Sat, 13 Jun 2015 12:26:58 +0000
(14:26 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 15 Jun 2015 12:31:02 +0000
(14:31 +0200)
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>
drivers/acpi/scan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/scan.c
b/drivers/acpi/scan.c
index b19283b336c74b156e8723fbb8756a3afb7cb1b6..0a099917a0064d57cd04b443d1f44af5a2385509 100644
(file)
--- 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[] = {
+ st
atic const st
ruct acpi_device_id button_device_ids[] = {
{"PNP0C0C", 0},
{"PNP0C0D", 0},
{"PNP0C0E", 0},