diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-08-28 22:17:38 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-04 01:28:08 -0400 |
commit | a816b4c67ae68a36a8775484b09ad727e4a28e3d (patch) | |
tree | 2fa4bedaf11bab7b2fc0881643c06181e34e8fef /drivers/scsi/sr.c | |
parent | 61b96d5b68a5aa58351a461cae81117ca9744069 (diff) | |
download | linux-a816b4c67ae68a36a8775484b09ad727e4a28e3d.tar.bz2 |
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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index ed179348de80..bed2bbd6b923 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -83,7 +83,7 @@ static int sr_init_command(struct scsi_cmnd *SCpnt); static int sr_done(struct scsi_cmnd *); 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, }; |