You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
0ead0f84e8
commit
471452104b
@@ -293,7 +293,7 @@ static int fpga_resume_noirq(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops fpga_dev_pm_ops = {
|
||||
static const struct dev_pm_ops fpga_dev_pm_ops = {
|
||||
.suspend_noirq = fpga_suspend_noirq,
|
||||
.resume_noirq = fpga_resume_noirq,
|
||||
};
|
||||
|
||||
@@ -1431,7 +1431,7 @@ static int omap_mpuio_resume_noirq(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops omap_mpuio_dev_pm_ops = {
|
||||
static const struct dev_pm_ops omap_mpuio_dev_pm_ops = {
|
||||
.suspend_noirq = omap_mpuio_suspend_noirq,
|
||||
.resume_noirq = omap_mpuio_resume_noirq,
|
||||
};
|
||||
|
||||
@@ -551,7 +551,7 @@ static int appldata_thaw(struct device *dev)
|
||||
return appldata_restore(dev);
|
||||
}
|
||||
|
||||
static struct dev_pm_ops appldata_pm_ops = {
|
||||
static const struct dev_pm_ops appldata_pm_ops = {
|
||||
.freeze = appldata_freeze,
|
||||
.thaw = appldata_thaw,
|
||||
.restore = appldata_restore,
|
||||
|
||||
@@ -4162,7 +4162,7 @@ static int floppy_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops floppy_pm_ops = {
|
||||
static const struct dev_pm_ops floppy_pm_ops = {
|
||||
.resume = floppy_resume,
|
||||
.restore = floppy_resume,
|
||||
};
|
||||
|
||||
@@ -931,7 +931,7 @@ static struct hv_ops hvc_iucv_ops = {
|
||||
};
|
||||
|
||||
/* Suspend / resume device operations */
|
||||
static struct dev_pm_ops hvc_iucv_pm_ops = {
|
||||
static const struct dev_pm_ops hvc_iucv_pm_ops = {
|
||||
.freeze = hvc_iucv_pm_freeze,
|
||||
.thaw = hvc_iucv_pm_restore_thaw,
|
||||
.restore = hvc_iucv_pm_restore_thaw,
|
||||
|
||||
@@ -1188,7 +1188,7 @@ static int at_dma_resume_noirq(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops at_dma_dev_pm_ops = {
|
||||
static const struct dev_pm_ops at_dma_dev_pm_ops = {
|
||||
.suspend_noirq = at_dma_suspend_noirq,
|
||||
.resume_noirq = at_dma_resume_noirq,
|
||||
};
|
||||
|
||||
@@ -1427,7 +1427,7 @@ static int dw_resume_noirq(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops dw_dev_pm_ops = {
|
||||
static const struct dev_pm_ops dw_dev_pm_ops = {
|
||||
.suspend_noirq = dw_suspend_noirq,
|
||||
.resume_noirq = dw_resume_noirq,
|
||||
};
|
||||
|
||||
@@ -1313,7 +1313,7 @@ static int txx9dmac_resume_noirq(struct device *dev)
|
||||
|
||||
}
|
||||
|
||||
static struct dev_pm_ops txx9dmac_dev_pm_ops = {
|
||||
static const struct dev_pm_ops txx9dmac_dev_pm_ops = {
|
||||
.suspend_noirq = txx9dmac_suspend_noirq,
|
||||
.resume_noirq = txx9dmac_resume_noirq,
|
||||
};
|
||||
|
||||
@@ -518,7 +518,7 @@ static int applesmc_pm_restore(struct device *dev)
|
||||
return applesmc_pm_resume(dev);
|
||||
}
|
||||
|
||||
static struct dev_pm_ops applesmc_pm_ops = {
|
||||
static const struct dev_pm_ops applesmc_pm_ops = {
|
||||
.resume = applesmc_pm_resume,
|
||||
.restore = applesmc_pm_restore,
|
||||
};
|
||||
|
||||
@@ -1155,7 +1155,7 @@ static int i2c_pxa_resume_noirq(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops i2c_pxa_dev_pm_ops = {
|
||||
static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
|
||||
.suspend_noirq = i2c_pxa_suspend_noirq,
|
||||
.resume_noirq = i2c_pxa_resume_noirq,
|
||||
};
|
||||
|
||||
@@ -967,7 +967,7 @@ static int s3c24xx_i2c_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
|
||||
static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
|
||||
.suspend_noirq = s3c24xx_i2c_suspend_noirq,
|
||||
.resume = s3c24xx_i2c_resume,
|
||||
};
|
||||
|
||||
@@ -647,7 +647,7 @@ static int sh_mobile_i2c_runtime_nop(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
|
||||
static const struct dev_pm_ops sh_mobile_i2c_dev_pm_ops = {
|
||||
.runtime_suspend = sh_mobile_i2c_runtime_nop,
|
||||
.runtime_resume = sh_mobile_i2c_runtime_nop,
|
||||
};
|
||||
|
||||
@@ -319,7 +319,7 @@ static int adp5588_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops adp5588_dev_pm_ops = {
|
||||
static const struct dev_pm_ops adp5588_dev_pm_ops = {
|
||||
.suspend = adp5588_suspend,
|
||||
.resume = adp5588_resume,
|
||||
};
|
||||
|
||||
@@ -295,7 +295,7 @@ static int sh_keysc_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops sh_keysc_dev_pm_ops = {
|
||||
static const struct dev_pm_ops sh_keysc_dev_pm_ops = {
|
||||
.suspend = sh_keysc_suspend,
|
||||
.resume = sh_keysc_resume,
|
||||
};
|
||||
|
||||
@@ -247,7 +247,7 @@ static int bfin_rotary_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops bfin_rotary_pm_ops = {
|
||||
static const struct dev_pm_ops bfin_rotary_pm_ops = {
|
||||
.suspend = bfin_rotary_suspend,
|
||||
.resume = bfin_rotary_resume,
|
||||
};
|
||||
|
||||
@@ -127,7 +127,7 @@ static void pcspkr_shutdown(struct platform_device *dev)
|
||||
pcspkr_event(NULL, EV_SND, SND_BELL, 0);
|
||||
}
|
||||
|
||||
static struct dev_pm_ops pcspkr_pm_ops = {
|
||||
static const struct dev_pm_ops pcspkr_pm_ops = {
|
||||
.suspend = pcspkr_suspend,
|
||||
};
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ static int pcap_ts_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops pcap_ts_pm_ops = {
|
||||
static const struct dev_pm_ops pcap_ts_pm_ops = {
|
||||
.suspend = pcap_ts_suspend,
|
||||
.resume = pcap_ts_resume,
|
||||
};
|
||||
|
||||
@@ -2127,7 +2127,7 @@ vpfe_resume(struct device *dev)
|
||||
return -1;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops vpfe_dev_pm_ops = {
|
||||
static const struct dev_pm_ops vpfe_dev_pm_ops = {
|
||||
.suspend = vpfe_suspend,
|
||||
.resume = vpfe_resume,
|
||||
};
|
||||
|
||||
@@ -2107,7 +2107,7 @@ vpif_resume(struct device *dev)
|
||||
return -1;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops vpif_dev_pm_ops = {
|
||||
static const struct dev_pm_ops vpif_dev_pm_ops = {
|
||||
.suspend = vpif_suspend,
|
||||
.resume = vpif_resume,
|
||||
};
|
||||
|
||||
@@ -1825,7 +1825,7 @@ static int sh_mobile_ceu_runtime_nop(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = {
|
||||
static const struct dev_pm_ops sh_mobile_ceu_dev_pm_ops = {
|
||||
.runtime_suspend = sh_mobile_ceu_runtime_nop,
|
||||
.runtime_resume = sh_mobile_ceu_runtime_nop,
|
||||
};
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user