diff options
author | Tejun Heo <htejun@gmail.com> | 2007-12-15 15:04:57 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-17 20:33:12 -0500 |
commit | 0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18 (patch) | |
tree | 27b5f5afcff7450f37432f30661e56337313c5e9 /include/linux/libata.h | |
parent | 4e5200334e03e5620aa19d538300c13db270a063 (diff) | |
download | linux-stable-0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18.tar.gz linux-stable-0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18.tar.bz2 linux-stable-0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18.zip |
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/linux/libata.h')
-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 { /* libata-acpi.c */ #ifdef CONFIG_ATA_ACPI extern int ata_acpi_cbl_80wire(struct ata_port *ap); -int ata_acpi_stm(const struct ata_port *ap, struct ata_acpi_gtm *stm); -int ata_acpi_gtm(const struct ata_port *ap, struct ata_acpi_gtm *stm); +int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm); +int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm); #else static inline int ata_acpi_cbl_80wire(struct ata_port *ap) { return 0; } #endif |