ACPI / fan: Make struct dev_pm_ops const
authorKaiyen Chang <kaiyen.chang@intel.com>
Wed, 10 Feb 2016 23:23:27 +0000 (15:23 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 22:23:21 +0000 (23:23 +0100)
Silence the following checkpatch warning:
WARNING: struct dev_pm_ops should normally be const.

Signed-off-by: Kaiyen Chang <kaiyen.chang@intel.com>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/fan.c

index 6322db64b4a4b999180e8eb818c5279a0b23ef37..384cfc3083e1d98c544918b49ec517a9399c27a3 100644 (file)
@@ -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,