Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / fan: Make struct dev_pm_ops const

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>

authored by

Kaiyen Chang and committed by
Rafael J. Wysocki
1d751584 f6cede5b

+1 -1
+1 -1
drivers/acpi/fan.c
··· 46 46 #ifdef CONFIG_PM_SLEEP 47 47 static int acpi_fan_suspend(struct device *dev); 48 48 static int acpi_fan_resume(struct device *dev); 49 - static struct dev_pm_ops acpi_fan_pm = { 49 + static const struct dev_pm_ops acpi_fan_pm = { 50 50 .resume = acpi_fan_resume, 51 51 .freeze = acpi_fan_suspend, 52 52 .thaw = acpi_fan_resume,