* [PATCH] ACPI / fan: Make struct dev_pm_ops const
@ 2016-02-10 23:23 Brian Norris
2016-03-10 23:33 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Brian Norris @ 2016-02-10 23:23 UTC (permalink / raw)
To: Zhang Rui
Cc: Rafael J. Wysocki, Len Brown, linux-acpi, linux-kernel,
Brian Norris, Kaiyen Chang, Brian Norris
From: Kaiyen Chang <kaiyen.chang@intel.com>
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI / fan: Make struct dev_pm_ops const
2016-02-10 23:23 [PATCH] ACPI / fan: Make struct dev_pm_ops const Brian Norris
@ 2016-03-10 23:33 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2016-03-10 23:33 UTC (permalink / raw)
To: Brian Norris
Cc: Zhang Rui, Len Brown, linux-acpi, linux-kernel, Brian Norris,
Kaiyen Chang
On Wednesday, February 10, 2016 03:23:27 PM Brian Norris wrote:
> From: Kaiyen Chang <kaiyen.chang@intel.com>
>
> 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>
Applied, thanks!
Rafael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-10 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-10 23:23 [PATCH] ACPI / fan: Make struct dev_pm_ops const Brian Norris
2016-03-10 23:33 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).