diff options
author | Mathias Krause <minipli@googlemail.com> | 2016-01-02 05:30:09 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-04 16:10:30 -0500 |
commit | 38a234b9f08883bbcb475b798e0a3d6b44bd37d7 (patch) | |
tree | ab5f76c6a9ce21a05ec49c00a51a4a7902895dc9 /drivers/acpi | |
parent | 168309855a7d1e16db751e9c647119fe2d2dc878 (diff) |
ACPI / PNP: constify device IDs
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpi_pnp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_pnp.c b/drivers/acpi/acpi_pnp.c index 48fc3ad13a4b..67d97c0090a2 100644 --- a/drivers/acpi/acpi_pnp.c +++ b/drivers/acpi/acpi_pnp.c | |||
@@ -367,7 +367,7 @@ static struct acpi_scan_handler acpi_pnp_handler = { | |||
367 | */ | 367 | */ |
368 | static int is_cmos_rtc_device(struct acpi_device *adev) | 368 | static int is_cmos_rtc_device(struct acpi_device *adev) |
369 | { | 369 | { |
370 | struct acpi_device_id ids[] = { | 370 | static const struct acpi_device_id ids[] = { |
371 | { "PNP0B00" }, | 371 | { "PNP0B00" }, |
372 | { "PNP0B01" }, | 372 | { "PNP0B01" }, |
373 | { "PNP0B02" }, | 373 | { "PNP0B02" }, |