diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-06-09 17:15:08 +0530 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-06-12 14:06:34 -0400 |
commit | f356b08205f6668248960093faf9326c7852a38d (patch) | |
tree | 9178fc6558795faa5b0919490988e02dfcdb4986 /drivers/ata/pata_sch.c | |
parent | be4e456ed3a5918f4e75f532837bb19128a690c9 (diff) | |
download | linux-f356b08205f6668248960093faf9326c7852a38d.tar.gz linux-f356b08205f6668248960093faf9326c7852a38d.tar.bz2 linux-f356b08205f6668248960093faf9326c7852a38d.zip |
ata: declare ata_port_info structures as const
ata_port_info structures are either copied to other objects or their
references are stored in objects of type const. So, ata_port_info
structures having similar usage pattern can be made const.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_sch.c')
-rw-r--r-- | drivers/ata/pata_sch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_sch.c b/drivers/ata/pata_sch.c index b920c3407f8b..1b80a66caa54 100644 --- a/drivers/ata/pata_sch.c +++ b/drivers/ata/pata_sch.c @@ -81,7 +81,7 @@ static struct ata_port_operations sch_pata_ops = { .set_dmamode = sch_set_dmamode, }; -static struct ata_port_info sch_port_info = { +static const struct ata_port_info sch_port_info = { .flags = ATA_FLAG_SLAVE_POSS, .pio_mask = ATA_PIO4, .mwdma_mask = ATA_MWDMA2, |