]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fb7e229628f55fac8258389e97b8d7c27829606
treeab5f76c6a9ce21a05ec49c00a51a4a7902895dc9
parentc84ebc1f8b6e106e45ad13ca51399497157047ee
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>
drivers/acpi/acpi_pnp.c