aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata.h
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-30 22:10:40 +0530
committerTejun Heo <tj@kernel.org>2017-10-02 09:57:55 -0700
commit8df82c13a3756f831b0d748226ce932515728e04 (patch)
treef543ab6512a622e3d682c0ed9f9072383159aee3 /drivers/ata/libata.h
parentlibata: make static arrays const, reduces object code size (diff)
downloadlinux-dev-8df82c13a3756f831b0d748226ce932515728e04.tar.xz
linux-dev-8df82c13a3756f831b0d748226ce932515728e04.zip
libata: make ata_port_type const
Make this const as it is only stored in the const field of a device structure. Make the declaration in header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r--drivers/ata/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
index 839d487394b7..18bf1e995a18 100644
--- a/drivers/ata/libata.h
+++ b/drivers/ata/libata.h
@@ -51,7 +51,7 @@ extern int atapi_passthru16;
extern int libata_fua;
extern int libata_noacpi;
extern int libata_allow_tpm;
-extern struct device_type ata_port_type;
+extern const struct device_type ata_port_type;
extern struct ata_link *ata_dev_phys_link(struct ata_device *dev);
extern void ata_force_cbl(struct ata_port *ap);
extern u64 ata_tf_to_lba(const struct ata_taskfile *tf);