summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_rdc.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-06-09 13:45:08 +0200
committerTejun Heo2017-06-12 20:06:34 +0200
commitf356b08205f6668248960093faf9326c7852a38d (patch)
tree9178fc6558795faa5b0919490988e02dfcdb4986 /drivers/ata/pata_rdc.c
parentata: Add driver for Faraday Technology FTIDE010 (diff)
downloadkernel-qcow2-linux-f356b08205f6668248960093faf9326c7852a38d.tar.gz
kernel-qcow2-linux-f356b08205f6668248960093faf9326c7852a38d.tar.xz
kernel-qcow2-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_rdc.c')
-rw-r--r--drivers/ata/pata_rdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c
index 9ce5952216bc..959bb54fd803 100644
--- a/drivers/ata/pata_rdc.c
+++ b/drivers/ata/pata_rdc.c
@@ -292,7 +292,7 @@ static struct ata_port_operations rdc_pata_ops = {
.prereset = rdc_pata_prereset,
};
-static struct ata_port_info rdc_port_info = {
+static const struct ata_port_info rdc_port_info = {
.flags = ATA_FLAG_SLAVE_POSS,
.pio_mask = ATA_PIO4,