aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-06-25 04:13:04 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-06-29 11:38:11 -0400
commit30dcf76acc695cbd2fa919e294670fe9552e16e7 (patch)
tree77156836889ea87b90058dd23f634f0f7d99b757 /include/linux/libata.h
parent6b66d95895c149cbc04d4fac5a2f5477c543a8ae (diff)
libata: migrate ACPI code over to new bindings
Now that we have the ability to directly glue the ACPI namespace to the driver model in libata, we don't need the custom code to handle the same thing. Remove it and migrate the functions over to the new code. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Holger Macht <holger@homac.de> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 6e887c742a2..888feef3cda 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -545,9 +545,6 @@ struct ata_host {
545 struct mutex eh_mutex; 545 struct mutex eh_mutex;
546 struct task_struct *eh_owner; 546 struct task_struct *eh_owner;
547 547
548#ifdef CONFIG_ATA_ACPI
549 acpi_handle acpi_handle;
550#endif
551 struct ata_port *simplex_claimed; /* channel owning the DMA */ 548 struct ata_port *simplex_claimed; /* channel owning the DMA */
552 struct ata_port *ports[0]; 549 struct ata_port *ports[0];
553}; 550};
@@ -615,7 +612,6 @@ struct ata_device {
615 struct scsi_device *sdev; /* attached SCSI device */ 612 struct scsi_device *sdev; /* attached SCSI device */
616 void *private_data; 613 void *private_data;
617#ifdef CONFIG_ATA_ACPI 614#ifdef CONFIG_ATA_ACPI
618 acpi_handle acpi_handle;
619 union acpi_object *gtf_cache; 615 union acpi_object *gtf_cache;
620 unsigned int gtf_filter; 616 unsigned int gtf_filter;
621#endif 617#endif
@@ -797,7 +793,6 @@ struct ata_port {
797 void *private_data; 793 void *private_data;
798 794
799#ifdef CONFIG_ATA_ACPI 795#ifdef CONFIG_ATA_ACPI
800 acpi_handle acpi_handle;
801 struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */ 796 struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */
802#endif 797#endif
803 /* owned by EH */ 798 /* owned by EH */
@@ -1114,6 +1109,8 @@ int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm);
1114int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm); 1109int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm);
1115unsigned long ata_acpi_gtm_xfermask(struct ata_device *dev, 1110unsigned long ata_acpi_gtm_xfermask(struct ata_device *dev,
1116 const struct ata_acpi_gtm *gtm); 1111 const struct ata_acpi_gtm *gtm);
1112acpi_handle ata_ap_acpi_handle(struct ata_port *ap);
1113acpi_handle ata_dev_acpi_handle(struct ata_device *dev);
1117int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm); 1114int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm);
1118#else 1115#else
1119static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) 1116static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap)