aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-12-15 01:04:57 -0500
committerJeff Garzik <jeff@garzik.org>2007-12-17 20:33:12 -0500
commit0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18 (patch)
tree27b5f5afcff7450f37432f30661e56337313c5e9 /include
parent4e5200334e03e5620aa19d538300c13db270a063 (diff)
libata-acpi: adjust constness in ata_acpi_gtm/stm() parameters
* No internal function uses const ata_port. Drop const from @ap. * Make ata_acpi_stm() copy @stm before using it and change @stm to const. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index ef52a07c43d8..1ca9b89632f9 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -940,8 +940,8 @@ enum {
940/* libata-acpi.c */ 940/* libata-acpi.c */
941#ifdef CONFIG_ATA_ACPI 941#ifdef CONFIG_ATA_ACPI
942extern int ata_acpi_cbl_80wire(struct ata_port *ap); 942extern int ata_acpi_cbl_80wire(struct ata_port *ap);
943int ata_acpi_stm(const struct ata_port *ap, struct ata_acpi_gtm *stm); 943int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm);
944int ata_acpi_gtm(const struct ata_port *ap, struct ata_acpi_gtm *stm); 944int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm);
945#else 945#else
946static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; } 946static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; }
947#endif 947#endif