Skip to content

Commit 4714521

Browse files
Alexey Dobriyantorvalds
authored andcommitted
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>
1 parent 0ead0f8 commit 4714521

76 files changed

Lines changed: 76 additions & 76 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/plat-omap/debug-leds.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static int fpga_resume_noirq(struct device *dev)
293293
return 0;
294294
}
295295

296-
static struct dev_pm_ops fpga_dev_pm_ops = {
296+
static const struct dev_pm_ops fpga_dev_pm_ops = {
297297
.suspend_noirq = fpga_suspend_noirq,
298298
.resume_noirq = fpga_resume_noirq,
299299
};

‎arch/arm/plat-omap/gpio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ static int omap_mpuio_resume_noirq(struct device *dev)
14311431
return 0;
14321432
}
14331433

1434-
static struct dev_pm_ops omap_mpuio_dev_pm_ops = {
1434+
static const struct dev_pm_ops omap_mpuio_dev_pm_ops = {
14351435
.suspend_noirq = omap_mpuio_suspend_noirq,
14361436
.resume_noirq = omap_mpuio_resume_noirq,
14371437
};

‎arch/s390/appldata/appldata_base.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ static int appldata_thaw(struct device *dev)
551551
return appldata_restore(dev);
552552
}
553553

554-
static struct dev_pm_ops appldata_pm_ops = {
554+
static const struct dev_pm_ops appldata_pm_ops = {
555555
.freeze = appldata_freeze,
556556
.thaw = appldata_thaw,
557557
.restore = appldata_restore,

‎drivers/block/floppy.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4162,7 +4162,7 @@ static int floppy_resume(struct device *dev)
41624162
return 0;
41634163
}
41644164

4165-
static struct dev_pm_ops floppy_pm_ops = {
4165+
static const struct dev_pm_ops floppy_pm_ops = {
41664166
.resume = floppy_resume,
41674167
.restore = floppy_resume,
41684168
};

‎drivers/char/hvc_iucv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ static struct hv_ops hvc_iucv_ops = {
931931
};
932932

933933
/* 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 = {
935935
.freeze = hvc_iucv_pm_freeze,
936936
.thaw = hvc_iucv_pm_restore_thaw,
937937
.restore = hvc_iucv_pm_restore_thaw,

‎drivers/dma/at_hdmac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ static int at_dma_resume_noirq(struct device *dev)
11881188
return 0;
11891189
}
11901190

1191-
static struct dev_pm_ops at_dma_dev_pm_ops = {
1191+
static const struct dev_pm_ops at_dma_dev_pm_ops = {
11921192
.suspend_noirq = at_dma_suspend_noirq,
11931193
.resume_noirq = at_dma_resume_noirq,
11941194
};

‎drivers/dma/dw_dmac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ static int dw_resume_noirq(struct device *dev)
14271427
return 0;
14281428
}
14291429

1430-
static struct dev_pm_ops dw_dev_pm_ops = {
1430+
static const struct dev_pm_ops dw_dev_pm_ops = {
14311431
.suspend_noirq = dw_suspend_noirq,
14321432
.resume_noirq = dw_resume_noirq,
14331433
};

‎drivers/dma/txx9dmac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ static int txx9dmac_resume_noirq(struct device *dev)
13131313

13141314
}
13151315

1316-
static struct dev_pm_ops txx9dmac_dev_pm_ops = {
1316+
static const struct dev_pm_ops txx9dmac_dev_pm_ops = {
13171317
.suspend_noirq = txx9dmac_suspend_noirq,
13181318
.resume_noirq = txx9dmac_resume_noirq,
13191319
};

‎drivers/hwmon/applesmc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static int applesmc_pm_restore(struct device *dev)
518518
return applesmc_pm_resume(dev);
519519
}
520520

521-
static struct dev_pm_ops applesmc_pm_ops = {
521+
static const struct dev_pm_ops applesmc_pm_ops = {
522522
.resume = applesmc_pm_resume,
523523
.restore = applesmc_pm_restore,
524524
};

‎drivers/i2c/busses/i2c-pxa.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ static int i2c_pxa_resume_noirq(struct device *dev)
11551155
return 0;
11561156
}
11571157

1158-
static struct dev_pm_ops i2c_pxa_dev_pm_ops = {
1158+
static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
11591159
.suspend_noirq = i2c_pxa_suspend_noirq,
11601160
.resume_noirq = i2c_pxa_resume_noirq,
11611161
};

0 commit comments

Comments
 (0)