summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2016-01-02 11:30:09 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-04 22:10:30 +0100
commit38a234b9f08883bbcb475b798e0a3d6b44bd37d7 (patch)
treeab5f76c6a9ce21a05ec49c00a51a4a7902895dc9 /drivers/acpi
parent168309855a7d1e16db751e9c647119fe2d2dc878 (diff)
downloadblackbird-op-linux-38a234b9f08883bbcb475b798e0a3d6b44bd37d7.tar.gz
blackbird-op-linux-38a234b9f08883bbcb475b798e0a3d6b44bd37d7.zip
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.c2
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 = {
*/
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" },
OpenPOWER on IntegriCloud