diff options
author | Tejun Heo <htejun@gmail.com> | 2007-12-15 01:04:57 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-17 20:33:12 -0500 |
commit | 0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18 (patch) | |
tree | 27b5f5afcff7450f37432f30661e56337313c5e9 /include | |
parent | 4e5200334e03e5620aa19d538300c13db270a063 (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.h | 4 |
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 |
942 | extern int ata_acpi_cbl_80wire(struct ata_port *ap); | 942 | extern int ata_acpi_cbl_80wire(struct ata_port *ap); |
943 | int ata_acpi_stm(const struct ata_port *ap, struct ata_acpi_gtm *stm); | 943 | int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm); |
944 | int ata_acpi_gtm(const struct ata_port *ap, struct ata_acpi_gtm *stm); | 944 | int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm); |
945 | #else | 945 | #else |
946 | static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; } | 946 | static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; } |
947 | #endif | 947 | #endif |