Commit 471452104b8520337ae2fb48c4e61cd4896e025d
Committed by
Linus Torvalds
1 parent
0ead0f84e8
Exists in
master
and in
39 other branches
const: constify remaining dev_pm_ops
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 76 changed files with 76 additions and 76 deletions Side-by-side Diff
- arch/arm/plat-omap/debug-leds.c
- arch/arm/plat-omap/gpio.c
- arch/s390/appldata/appldata_base.c
- drivers/block/floppy.c
- drivers/char/hvc_iucv.c
- drivers/dma/at_hdmac.c
- drivers/dma/dw_dmac.c
- drivers/dma/txx9dmac.c
- drivers/hwmon/applesmc.c
- drivers/i2c/busses/i2c-pxa.c
- drivers/i2c/busses/i2c-s3c2410.c
- drivers/i2c/busses/i2c-sh_mobile.c
- drivers/input/keyboard/adp5588-keys.c
- drivers/input/keyboard/sh_keysc.c
- drivers/input/misc/bfin_rotary.c
- drivers/input/misc/pcspkr.c
- drivers/input/touchscreen/pcap_ts.c
- drivers/media/video/davinci/vpfe_capture.c
- drivers/media/video/davinci/vpif_capture.c
- drivers/media/video/sh_mobile_ceu_camera.c
- drivers/mmc/host/pxamci.c
- drivers/mmc/host/s3cmci.c
- drivers/mtd/nand/nomadik_nand.c
- drivers/net/3c59x.c
- drivers/net/dm9000.c
- drivers/net/r8169.c
- drivers/net/smsc911x.c
- drivers/net/vmxnet3/vmxnet3_drv.c
- drivers/pci/pcie/portdrv_pci.c
- drivers/pcmcia/pxa2xx_base.c
- drivers/pcmcia/yenta_socket.c
- drivers/platform/x86/acerhdf.c
- drivers/platform/x86/eeepc-laptop.c
- drivers/platform/x86/hp-wmi.c
- drivers/power/wm97xx_battery.c
- drivers/rtc/rtc-pxa.c
- drivers/rtc/rtc-sa1100.c
- drivers/rtc/rtc-sh.c
- drivers/rtc/rtc-wm831x.c
- drivers/s390/block/dcssblk.c
- drivers/s390/block/xpram.c
- drivers/s390/char/monreader.c
- drivers/s390/char/monwriter.c
- drivers/s390/char/sclp.c
- drivers/s390/char/sclp_cmd.c
- drivers/s390/char/vmlogrdr.c
- drivers/s390/cio/ccwgroup.c
- drivers/s390/cio/css.c
- drivers/s390/cio/device.c
- drivers/s390/net/netiucv.c
- drivers/s390/net/smsgiucv.c
- drivers/serial/pxa.c
- drivers/serial/sh-sci.c
- drivers/spi/pxa2xx_spi.c
- drivers/spi/spi_s3c24xx.c
- drivers/uio/uio_pdrv_genirq.c
- drivers/usb/core/hcd-pci.c
- drivers/usb/core/hcd.h
- drivers/usb/core/usb.c
- drivers/usb/host/ehci-au1xxx.c
- drivers/usb/host/ohci-au1xxx.c
- drivers/usb/host/ohci-pxa27x.c
- drivers/usb/host/r8a66597-hcd.c
- drivers/usb/musb/musb_core.c
- drivers/video/backlight/da903x_bl.c
- drivers/video/hitfb.c
- drivers/video/pxafb.c
- drivers/video/sh_mobile_lcdcfb.c
- drivers/watchdog/adx_wdt.c
- include/linux/pm.h
- net/iucv/af_iucv.c
- net/iucv/iucv.c
- sound/arm/pxa2xx-ac97.c
- sound/soc/s3c24xx/s3c24xx_simtec.c
- sound/soc/s3c24xx/s3c24xx_simtec.h
- sound/soc/soc-core.c
arch/arm/plat-omap/debug-leds.c
arch/arm/plat-omap/gpio.c
... | ... | @@ -1431,7 +1431,7 @@ |
1431 | 1431 | return 0; |
1432 | 1432 | } |
1433 | 1433 | |
1434 | -static struct dev_pm_ops omap_mpuio_dev_pm_ops = { | |
1434 | +static const struct dev_pm_ops omap_mpuio_dev_pm_ops = { | |
1435 | 1435 | .suspend_noirq = omap_mpuio_suspend_noirq, |
1436 | 1436 | .resume_noirq = omap_mpuio_resume_noirq, |
1437 | 1437 | }; |
arch/s390/appldata/appldata_base.c
drivers/block/floppy.c
drivers/char/hvc_iucv.c
... | ... | @@ -931,7 +931,7 @@ |
931 | 931 | }; |
932 | 932 | |
933 | 933 | /* Suspend / resume device operations */ |
934 | -static struct dev_pm_ops hvc_iucv_pm_ops = { | |
934 | +static const struct dev_pm_ops hvc_iucv_pm_ops = { | |
935 | 935 | .freeze = hvc_iucv_pm_freeze, |
936 | 936 | .thaw = hvc_iucv_pm_restore_thaw, |
937 | 937 | .restore = hvc_iucv_pm_restore_thaw, |
drivers/dma/at_hdmac.c
drivers/dma/dw_dmac.c
drivers/dma/txx9dmac.c
drivers/hwmon/applesmc.c
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/busses/i2c-s3c2410.c
drivers/i2c/busses/i2c-sh_mobile.c
... | ... | @@ -647,7 +647,7 @@ |
647 | 647 | return 0; |
648 | 648 | } |
649 | 649 | |
650 | -static struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = { | |
650 | +static const struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = { | |
651 | 651 | .runtime_suspend = sh_mobile_i2c_runtime_nop, |
652 | 652 | .runtime_resume = sh_mobile_i2c_runtime_nop, |
653 | 653 | }; |
drivers/input/keyboard/adp5588-keys.c
drivers/input/keyboard/sh_keysc.c
drivers/input/misc/bfin_rotary.c
drivers/input/misc/pcspkr.c
drivers/input/touchscreen/pcap_ts.c
drivers/media/video/davinci/vpfe_capture.c
drivers/media/video/davinci/vpif_capture.c
drivers/media/video/sh_mobile_ceu_camera.c
... | ... | @@ -1825,7 +1825,7 @@ |
1825 | 1825 | return 0; |
1826 | 1826 | } |
1827 | 1827 | |
1828 | -static struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = { | |
1828 | +static const struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = { | |
1829 | 1829 | .runtime_suspend = sh_mobile_ceu_runtime_nop, |
1830 | 1830 | .runtime_resume = sh_mobile_ceu_runtime_nop, |
1831 | 1831 | }; |
drivers/mmc/host/pxamci.c
drivers/mmc/host/s3cmci.c
drivers/mtd/nand/nomadik_nand.c
drivers/net/3c59x.c
drivers/net/dm9000.c
drivers/net/r8169.c
drivers/net/smsc911x.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/pci/pcie/portdrv_pci.c
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | } |
44 | 44 | |
45 | 45 | #ifdef CONFIG_PM |
46 | -static struct dev_pm_ops pcie_portdrv_pm_ops = { | |
46 | +static const struct dev_pm_ops pcie_portdrv_pm_ops = { | |
47 | 47 | .suspend = pcie_port_device_suspend, |
48 | 48 | .resume = pcie_port_device_resume, |
49 | 49 | .freeze = pcie_port_device_suspend, |
drivers/pcmcia/pxa2xx_base.c
... | ... | @@ -336,7 +336,7 @@ |
336 | 336 | return pcmcia_socket_dev_resume(dev); |
337 | 337 | } |
338 | 338 | |
339 | -static struct dev_pm_ops pxa2xx_drv_pcmcia_pm_ops = { | |
339 | +static const struct dev_pm_ops pxa2xx_drv_pcmcia_pm_ops = { | |
340 | 340 | .suspend = pxa2xx_drv_pcmcia_suspend, |
341 | 341 | .resume = pxa2xx_drv_pcmcia_resume, |
342 | 342 | }; |
drivers/pcmcia/yenta_socket.c
... | ... | @@ -1330,7 +1330,7 @@ |
1330 | 1330 | return 0; |
1331 | 1331 | } |
1332 | 1332 | |
1333 | -static struct dev_pm_ops yenta_pm_ops = { | |
1333 | +static const struct dev_pm_ops yenta_pm_ops = { | |
1334 | 1334 | .suspend_noirq = yenta_dev_suspend_noirq, |
1335 | 1335 | .resume_noirq = yenta_dev_resume_noirq, |
1336 | 1336 | .resume = yenta_dev_resume, |
drivers/platform/x86/acerhdf.c
drivers/platform/x86/eeepc-laptop.c
... | ... | @@ -154,7 +154,7 @@ |
154 | 154 | static int eeepc_hotk_thaw(struct device *device); |
155 | 155 | static int eeepc_hotk_restore(struct device *device); |
156 | 156 | |
157 | -static struct dev_pm_ops eeepc_pm_ops = { | |
157 | +static const struct dev_pm_ops eeepc_pm_ops = { | |
158 | 158 | .thaw = eeepc_hotk_thaw, |
159 | 159 | .restore = eeepc_hotk_restore, |
160 | 160 | }; |
drivers/platform/x86/hp-wmi.c
... | ... | @@ -94,7 +94,7 @@ |
94 | 94 | static struct rfkill *bluetooth_rfkill; |
95 | 95 | static struct rfkill *wwan_rfkill; |
96 | 96 | |
97 | -static struct dev_pm_ops hp_wmi_pm_ops = { | |
97 | +static const struct dev_pm_ops hp_wmi_pm_ops = { | |
98 | 98 | .resume = hp_wmi_resume_handler, |
99 | 99 | .restore = hp_wmi_resume_handler, |
100 | 100 | }; |
drivers/power/wm97xx_battery.c
drivers/rtc/rtc-pxa.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-sh.c
drivers/rtc/rtc-wm831x.c
drivers/s390/block/dcssblk.c
drivers/s390/block/xpram.c
drivers/s390/char/monreader.c
drivers/s390/char/monwriter.c
drivers/s390/char/sclp.c
... | ... | @@ -1019,7 +1019,7 @@ |
1019 | 1019 | return sclp_undo_suspend(SCLP_PM_EVENT_RESTORE); |
1020 | 1020 | } |
1021 | 1021 | |
1022 | -static struct dev_pm_ops sclp_pm_ops = { | |
1022 | +static const struct dev_pm_ops sclp_pm_ops = { | |
1023 | 1023 | .freeze = sclp_freeze, |
1024 | 1024 | .thaw = sclp_thaw, |
1025 | 1025 | .restore = sclp_restore, |
drivers/s390/char/sclp_cmd.c
drivers/s390/char/vmlogrdr.c
drivers/s390/cio/ccwgroup.c
... | ... | @@ -560,7 +560,7 @@ |
560 | 560 | return gdrv->restore ? gdrv->restore(gdev) : 0; |
561 | 561 | } |
562 | 562 | |
563 | -static struct dev_pm_ops ccwgroup_pm_ops = { | |
563 | +static const struct dev_pm_ops ccwgroup_pm_ops = { | |
564 | 564 | .prepare = ccwgroup_pm_prepare, |
565 | 565 | .complete = ccwgroup_pm_complete, |
566 | 566 | .freeze = ccwgroup_pm_freeze, |
drivers/s390/cio/css.c
... | ... | @@ -1148,7 +1148,7 @@ |
1148 | 1148 | return drv->restore ? drv->restore(sch) : 0; |
1149 | 1149 | } |
1150 | 1150 | |
1151 | -static struct dev_pm_ops css_pm_ops = { | |
1151 | +static const struct dev_pm_ops css_pm_ops = { | |
1152 | 1152 | .prepare = css_pm_prepare, |
1153 | 1153 | .complete = css_pm_complete, |
1154 | 1154 | .freeze = css_pm_freeze, |
drivers/s390/cio/device.c
... | ... | @@ -1904,7 +1904,7 @@ |
1904 | 1904 | return ret; |
1905 | 1905 | } |
1906 | 1906 | |
1907 | -static struct dev_pm_ops ccw_pm_ops = { | |
1907 | +static const struct dev_pm_ops ccw_pm_ops = { | |
1908 | 1908 | .prepare = ccw_device_pm_prepare, |
1909 | 1909 | .complete = ccw_device_pm_complete, |
1910 | 1910 | .freeze = ccw_device_pm_freeze, |
drivers/s390/net/netiucv.c
... | ... | @@ -159,7 +159,7 @@ |
159 | 159 | static int netiucv_pm_freeze(struct device *); |
160 | 160 | static int netiucv_pm_restore_thaw(struct device *); |
161 | 161 | |
162 | -static struct dev_pm_ops netiucv_pm_ops = { | |
162 | +static const struct dev_pm_ops netiucv_pm_ops = { | |
163 | 163 | .prepare = netiucv_pm_prepare, |
164 | 164 | .complete = netiucv_pm_complete, |
165 | 165 | .freeze = netiucv_pm_freeze, |
drivers/s390/net/smsgiucv.c
drivers/serial/pxa.c
drivers/serial/sh-sci.c
drivers/spi/pxa2xx_spi.c
drivers/spi/spi_s3c24xx.c
drivers/uio/uio_pdrv_genirq.c
... | ... | @@ -210,7 +210,7 @@ |
210 | 210 | return 0; |
211 | 211 | } |
212 | 212 | |
213 | -static struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = { | |
213 | +static const struct dev_pm_ops uio_pdrv_genirq_dev_pm_ops = { | |
214 | 214 | .runtime_suspend = uio_pdrv_genirq_runtime_nop, |
215 | 215 | .runtime_resume = uio_pdrv_genirq_runtime_nop, |
216 | 216 | }; |
drivers/usb/core/hcd-pci.c
... | ... | @@ -363,7 +363,7 @@ |
363 | 363 | return resume_common(dev, true); |
364 | 364 | } |
365 | 365 | |
366 | -struct dev_pm_ops usb_hcd_pci_pm_ops = { | |
366 | +const struct dev_pm_ops usb_hcd_pci_pm_ops = { | |
367 | 367 | .suspend = hcd_pci_suspend, |
368 | 368 | .suspend_noirq = hcd_pci_suspend_noirq, |
369 | 369 | .resume_noirq = hcd_pci_resume_noirq, |
drivers/usb/core/hcd.h
drivers/usb/core/usb.c
... | ... | @@ -320,7 +320,7 @@ |
320 | 320 | return usb_resume(dev, PMSG_RESTORE); |
321 | 321 | } |
322 | 322 | |
323 | -static struct dev_pm_ops usb_device_pm_ops = { | |
323 | +static const struct dev_pm_ops usb_device_pm_ops = { | |
324 | 324 | .prepare = usb_dev_prepare, |
325 | 325 | .complete = usb_dev_complete, |
326 | 326 | .suspend = usb_dev_suspend, |
drivers/usb/host/ehci-au1xxx.c
drivers/usb/host/ohci-au1xxx.c
drivers/usb/host/ohci-pxa27x.c
drivers/usb/host/r8a66597-hcd.c
... | ... | @@ -2353,7 +2353,7 @@ |
2353 | 2353 | return 0; |
2354 | 2354 | } |
2355 | 2355 | |
2356 | -static struct dev_pm_ops r8a66597_dev_pm_ops = { | |
2356 | +static const struct dev_pm_ops r8a66597_dev_pm_ops = { | |
2357 | 2357 | .suspend = r8a66597_suspend, |
2358 | 2358 | .resume = r8a66597_resume, |
2359 | 2359 | .poweroff = r8a66597_suspend, |
drivers/usb/musb/musb_core.c
drivers/video/backlight/da903x_bl.c
drivers/video/hitfb.c
drivers/video/pxafb.c
drivers/video/sh_mobile_lcdcfb.c
... | ... | @@ -890,7 +890,7 @@ |
890 | 890 | return 0; |
891 | 891 | } |
892 | 892 | |
893 | -static struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = { | |
893 | +static const struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = { | |
894 | 894 | .suspend = sh_mobile_lcdc_suspend, |
895 | 895 | .resume = sh_mobile_lcdc_resume, |
896 | 896 | .runtime_suspend = sh_mobile_lcdc_runtime_suspend, |
drivers/watchdog/adx_wdt.c
include/linux/pm.h
... | ... | @@ -219,7 +219,7 @@ |
219 | 219 | * to RAM and hibernation. |
220 | 220 | */ |
221 | 221 | #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \ |
222 | -struct dev_pm_ops name = { \ | |
222 | +const struct dev_pm_ops name = { \ | |
223 | 223 | .suspend = suspend_fn, \ |
224 | 224 | .resume = resume_fn, \ |
225 | 225 | .freeze = suspend_fn, \ |
net/iucv/af_iucv.c
net/iucv/iucv.c
... | ... | @@ -93,7 +93,7 @@ |
93 | 93 | static int iucv_pm_thaw(struct device *); |
94 | 94 | static int iucv_pm_restore(struct device *); |
95 | 95 | |
96 | -static struct dev_pm_ops iucv_pm_ops = { | |
96 | +static const struct dev_pm_ops iucv_pm_ops = { | |
97 | 97 | .prepare = iucv_pm_prepare, |
98 | 98 | .complete = iucv_pm_complete, |
99 | 99 | .freeze = iucv_pm_freeze, |
sound/arm/pxa2xx-ac97.c
sound/soc/s3c24xx/s3c24xx_simtec.c
sound/soc/s3c24xx/s3c24xx_simtec.h
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | extern int simtec_audio_remove(struct platform_device *pdev); |
16 | 16 | |
17 | 17 | #ifdef CONFIG_PM |
18 | -extern struct dev_pm_ops simtec_audio_pmops; | |
18 | +extern const struct dev_pm_ops simtec_audio_pmops; | |
19 | 19 | #define simtec_audio_pm &simtec_audio_pmops |
20 | 20 | #else |
21 | 21 | #define simtec_audio_pm NULL |
sound/soc/soc-core.c