Commit a816b4c6 authored by Julia Lawall's avatar Julia Lawall Committed by Martin K. Petersen

scsi: sr: constify sr_pm_ops structure

sr_pm_ops, of type struct dev_pm_ops, is never modified, so declare it
as const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 61b96d5b
...@@ -83,7 +83,7 @@ static int sr_init_command(struct scsi_cmnd *SCpnt); ...@@ -83,7 +83,7 @@ static int sr_init_command(struct scsi_cmnd *SCpnt);
static int sr_done(struct scsi_cmnd *); static int sr_done(struct scsi_cmnd *);
static int sr_runtime_suspend(struct device *dev); static int sr_runtime_suspend(struct device *dev);
static struct dev_pm_ops sr_pm_ops = { static const struct dev_pm_ops sr_pm_ops = {
.runtime_suspend = sr_runtime_suspend, .runtime_suspend = sr_runtime_suspend,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment