Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1706392 > unrolled thread

[PATCH] usb/dwc3:constify dev_pm_ops

Started byDoug Wilson <doug.lkml@gmail.com>
First post2017-08-08 13:30 +0200
Last post2017-08-08 13:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] usb/dwc3:constify dev_pm_ops Doug Wilson <doug.lkml@gmail.com> - 2017-08-08 13:30 +0200

#1706392 — [PATCH] usb/dwc3:constify dev_pm_ops

FromDoug Wilson <doug.lkml@gmail.com>
Date2017-08-08 13:30 +0200
Subject[PATCH] usb/dwc3:constify dev_pm_ops
Message-ID<ucaRZ-7FO-45@gated-at.bofh.it>
 dev_pm_ops is not supposed to change at runtime. Marking it
 constant.

Signed-off-by: Doug Wilson <doug.wilson@gmail.com>
---
 drivers/usb/dwc3/dwc3-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index 7e995df..54343fb 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -345,7 +345,7 @@ static int dwc3_pci_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-static struct dev_pm_ops dwc3_pci_dev_pm_ops = {
+static const struct dev_pm_ops dwc3_pci_dev_pm_ops = {
 	SET_SYSTEM_SLEEP_PM_OPS(dwc3_pci_suspend, dwc3_pci_resume)
 	SET_RUNTIME_PM_OPS(dwc3_pci_runtime_suspend, dwc3_pci_runtime_resume,
 		NULL)
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web