ACPI / PNP: constify device IDs
authorMathias Krause <minipli@googlemail.com>
Sat, 2 Jan 2016 10:30:09 +0000 (11:30 +0100)
committerRafael 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

index 48fc3ad13a4bbcfe5fc12a5db772855b5add0780..67d97c0090a27ad6a9ae9daecf1a163178481a95 100644 (file)
@@ -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[] = {
+       static const struct acpi_device_id ids[] = {
                { "PNP0B00" },
                { "PNP0B01" },
                { "PNP0B02" },
This page took 0.025965 seconds and 5 git commands to generate.