[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1455146607-66183-1-git-send-email-briannorris@chromium.org>
Date: Wed, 10 Feb 2016 15:23:27 -0800
From: Brian Norris <briannorris@...omium.org>
To: Zhang Rui <rui.zhang@...el.com>
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Len Brown <lenb@...nel.org>, linux-acpi@...r.kernel.org,
<linux-kernel@...r.kernel.org>,
Brian Norris <computersforpeace@...il.com>,
Kaiyen Chang <kaiyen.chang@...el.com>,
Brian Norris <briannorris@...omium.org>
Subject: [PATCH] ACPI / fan: Make struct dev_pm_ops const
From: Kaiyen Chang <kaiyen.chang@...el.com>
Silence the following checkpatch warning:
WARNING: struct dev_pm_ops should normally be const.
Signed-off-by: Kaiyen Chang <kaiyen.chang@...el.com>
Signed-off-by: Brian Norris <briannorris@...omium.org>
---
drivers/acpi/fan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 6322db64b4a4..384cfc3083e1 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(acpi, fan_device_ids);
#ifdef CONFIG_PM_SLEEP
static int acpi_fan_suspend(struct device *dev);
static int acpi_fan_resume(struct device *dev);
-static struct dev_pm_ops acpi_fan_pm = {
+static const struct dev_pm_ops acpi_fan_pm = {
.resume = acpi_fan_resume,
.freeze = acpi_fan_suspend,
.thaw = acpi_fan_resume,
--
2.7.0.rc3.207.g0ac5344
Powered by blists - more mailing lists