projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1683098
)
ACPI / PNP: constify device IDs
author
Mathias Krause
<minipli@googlemail.com>
Sat, 2 Jan 2016 10:30:09 +0000
(11:30 +0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Mon, 4 Jan 2016 21:10:30 +0000
(22:10 +0100)
Instead of re-creating the array on the stack each time
is_cmos_rtc_device() gets called, make the array 'static const'.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pnp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/acpi_pnp.c
b/drivers/acpi/acpi_pnp.c
index 48fc3ad13a4bbcfe5fc12a5db772855b5add0780..67d97c0090a27ad6a9ae9daecf1a163178481a95 100644
(file)
--- a/
drivers/acpi/acpi_pnp.c
+++ b/
drivers/acpi/acpi_pnp.c
@@
-367,7
+367,7
@@
static struct acpi_scan_handler acpi_pnp_handler = {
*/
static int is_cmos_rtc_device(struct acpi_device *adev)
{
- struct acpi_device_id ids[] = {
+ st
atic const st
ruct acpi_device_id ids[] = {
{ "PNP0B00" },
{ "PNP0B01" },
{ "PNP0B02" },
This page took
0.023951 seconds
and
5
git commands to generate.